diff --git a/.yarn/sdks/typescript/package.json b/.yarn/sdks/typescript/package.json index 76a119b9c..eb7dd745b 100644 --- a/.yarn/sdks/typescript/package.json +++ b/.yarn/sdks/typescript/package.json @@ -1,6 +1,6 @@ { "name": "typescript", - "version": "5.1.6-sdk", + "version": "5.3.3-sdk", "main": "./lib/typescript.js", "type": "commonjs", "bin": { diff --git a/e2e/traces.spec.ts b/e2e/traces.spec.ts index b509b7004..4b1a2e1be 100644 --- a/e2e/traces.spec.ts +++ b/e2e/traces.spec.ts @@ -143,8 +143,8 @@ test('user can change trace via clicking on a thumbnail', async ({ page }) => { ctx.status(200), ctx.json({ _id: '2', - x: '[2, 4, 6, 8, 10, 12, 14, 16, 18, 20]', - y: '[8, 1, 10, 9, 4, 3, 5, 6, 2, 7]', + x: [2, 4, 6, 8, 10, 12, 14, 16, 18, 20], + y: [8, 1, 10, 9, 4, 3, 5, 6, 2, 7], }) ); } diff --git a/src/api/waveforms.tsx b/src/api/waveforms.tsx index bfbdd195e..478a10249 100644 --- a/src/api/waveforms.tsx +++ b/src/api/waveforms.tsx @@ -17,11 +17,7 @@ export const fetchWaveform = async ( }, }) .then((response) => { - return { - ...response.data, - x: JSON.parse(response.data.x), - y: JSON.parse(response.data.y), - }; + return response.data; }); }; diff --git a/src/mocks/handlers.ts b/src/mocks/handlers.ts index 943bf21cd..70011b3c7 100644 --- a/src/mocks/handlers.ts +++ b/src/mocks/handlers.ts @@ -265,8 +265,8 @@ export const handlers = [ ctx.status(200), ctx.json({ _id: '1', - x: '[1, 2, 3, 4, 5, 6, 7, 8, 9, 10]', - y: '[2, 10, 8, 7, 1, 4, 5, 3, 6, 9]', + x: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], + y: [2, 10, 8, 7, 1, 4, 5, 3, 6, 9], }) ); }),