Remove unnecessary derived
This commit is contained in:
parent
79539ab992
commit
2213cd56c4
|
@ -23,7 +23,6 @@
|
||||||
appStore,
|
appStore,
|
||||||
dndComponentPath,
|
dndComponentPath,
|
||||||
dndIsDragging,
|
dndIsDragging,
|
||||||
componentErrors,
|
|
||||||
} from "stores"
|
} from "stores"
|
||||||
import { Helpers } from "@budibase/bbui"
|
import { Helpers } from "@budibase/bbui"
|
||||||
import { getActiveConditions, reduceConditionActions } from "utils/conditions"
|
import { getActiveConditions, reduceConditionActions } from "utils/conditions"
|
||||||
|
@ -139,7 +138,7 @@
|
||||||
|
|
||||||
// Derive definition properties which can all be optional, so need to be
|
// Derive definition properties which can all be optional, so need to be
|
||||||
// coerced to booleans
|
// coerced to booleans
|
||||||
$: invalidSettings = $componentErrors[instance._id]
|
$: invalidSettings = $builderStore.componentErrors[instance._id]
|
||||||
$: hasChildren = !!definition?.hasChildren
|
$: hasChildren = !!definition?.hasChildren
|
||||||
$: showEmptyState = definition?.showEmptyState !== false
|
$: showEmptyState = definition?.showEmptyState !== false
|
||||||
$: hasMissingRequiredSettings = missingRequiredSettings?.length > 0
|
$: hasMissingRequiredSettings = missingRequiredSettings?.length > 0
|
||||||
|
|
|
@ -1,6 +0,0 @@
|
||||||
import { derived } from "svelte/store"
|
|
||||||
import { builderStore } from "../builder.js"
|
|
||||||
|
|
||||||
export const componentErrors = derived([builderStore], ([$builderStore]) => {
|
|
||||||
return $builderStore.componentErrors
|
|
||||||
})
|
|
|
@ -5,4 +5,3 @@ export { currentRole } from "./currentRole.js"
|
||||||
export { dndComponentPath } from "./dndComponentPath.js"
|
export { dndComponentPath } from "./dndComponentPath.js"
|
||||||
export { devToolsEnabled } from "./devToolsEnabled.js"
|
export { devToolsEnabled } from "./devToolsEnabled.js"
|
||||||
export { snippets } from "./snippets.js"
|
export { snippets } from "./snippets.js"
|
||||||
export { componentErrors } from "./componentErrors"
|
|
||||||
|
|
Loading…
Reference in New Issue