From d1e6e7549a053b9c325e7d5fb47738997b7f736b Mon Sep 17 00:00:00 2001 From: Mel O'Hagan Date: Wed, 4 May 2022 13:33:58 +0100 Subject: [PATCH] using of --- packages/builder/src/components/integration/QueryViewer.svelte | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/builder/src/components/integration/QueryViewer.svelte b/packages/builder/src/components/integration/QueryViewer.svelte index 81ffa29733..49b9b38d86 100644 --- a/packages/builder/src/components/integration/QueryViewer.svelte +++ b/packages/builder/src/components/integration/QueryViewer.svelte @@ -48,8 +48,7 @@ $: { for (let i = 0; i < data.length; i++) { let row = data[i] - for (let fieldNameIndex in Object.keys(fields)) { - let fieldName = Object.keys(fields)[fieldNameIndex] + for (let fieldName of Object.keys(fields)) { if (fields[fieldName] === "number" && !isNaN(Number(row[fieldName]))) { row[fieldName] = Number(row[fieldName]) } else {