From 2e3b65ca4f0665699398c389fe4132ce89223db7 Mon Sep 17 00:00:00 2001 From: Dean Date: Mon, 4 Dec 2023 17:14:00 +0000 Subject: [PATCH] PR feedback --- packages/builder/src/builderStore/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/builder/src/builderStore/index.js b/packages/builder/src/builderStore/index.js index 333caeaf17..dd54dcf13e 100644 --- a/packages/builder/src/builderStore/index.js +++ b/packages/builder/src/builderStore/index.js @@ -8,6 +8,7 @@ import { derived, get } from "svelte/store" import { findComponent, findComponentPath } from "./componentUtils" import { RoleUtils } from "@budibase/frontend-core" import { createHistoryStore } from "builderStore/store/history" +import { cloneDeep } from "lodash/fp" export const store = getFrontendStore() export const automationStore = getAutomationStore() @@ -74,7 +75,7 @@ export const selectedComponent = derived( $store.selectedComponentId ) - const clone = selected ? Object.assign({}, selected) : selected + const clone = selected ? cloneDeep(selected) : selected store.actions.components.migrateSettings(clone) return clone }