PR feedback
This commit is contained in:
parent
de3d6700ed
commit
2e3b65ca4f
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue