From e5519b5ce3583e3cb48c17100b4d876ef6e25d1f Mon Sep 17 00:00:00 2001 From: Azri Kahar <42867097+azrikahar@users.noreply.github.com> Date: Fri, 1 Jul 2022 04:02:10 +0800 Subject: [PATCH] Persist existing global variable values on save (#14227) --- app/src/stores/insights.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/stores/insights.ts b/app/src/stores/insights.ts index d07fd08e04..b4be26663c 100644 --- a/app/src/stores/insights.ts +++ b/app/src/stores/insights.ts @@ -133,7 +133,7 @@ export const useInsightsStore = defineStore('insightsStore', () => { } }); - variables.value = variableDefaults; + variables.value = assign({}, variableDefaults, variables.value); } function dehydrate() {