From b7a71157ad355baa3b902cb9728ff09758bf098d Mon Sep 17 00:00:00 2001 From: Saqib Ansari Date: Thu, 19 Dec 2024 17:24:06 +0530 Subject: [PATCH] fix: changes on chart builder are saved twice when autosave is enabled --- frontend/src2/query/query.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src2/query/query.ts b/frontend/src2/query/query.ts index bf9d92c1..2306e4f0 100644 --- a/frontend/src2/query/query.ts +++ b/frontend/src2/query/query.ts @@ -194,7 +194,7 @@ export function makeQuery(workbookQuery: WorkbookQuery) { return [] } - let _operations = [...query.currentOperations] + let _operations = copy(query.currentOperations) for (const op of _operations) { if (op.type !== 'source' && op.type !== 'join' && op.type !== 'union') continue if (op.table.type !== 'query') continue