PR feedback

This commit is contained in:
Dean 2023-12-04 17:14:00 +00:00
parent de3d6700ed
commit 2e3b65ca4f
1 changed files with 2 additions and 1 deletions

View File

@ -8,6 +8,7 @@ import { derived, get } from "svelte/store"
import { findComponent, findComponentPath } from "./componentUtils" import { findComponent, findComponentPath } from "./componentUtils"
import { RoleUtils } from "@budibase/frontend-core" import { RoleUtils } from "@budibase/frontend-core"
import { createHistoryStore } from "builderStore/store/history" import { createHistoryStore } from "builderStore/store/history"
import { cloneDeep } from "lodash/fp"
export const store = getFrontendStore() export const store = getFrontendStore()
export const automationStore = getAutomationStore() export const automationStore = getAutomationStore()
@ -74,7 +75,7 @@ export const selectedComponent = derived(
$store.selectedComponentId $store.selectedComponentId
) )
const clone = selected ? Object.assign({}, selected) : selected const clone = selected ? cloneDeep(selected) : selected
store.actions.components.migrateSettings(clone) store.actions.components.migrateSettings(clone)
return clone return clone
} }