Remove unnecessary derived

This commit is contained in:
Adria Navarro 2025-01-22 12:18:55 +01:00
parent 79539ab992
commit 2213cd56c4
3 changed files with 1 additions and 9 deletions

View File

@ -23,7 +23,6 @@
appStore,
dndComponentPath,
dndIsDragging,
componentErrors,
} from "stores"
import { Helpers } from "@budibase/bbui"
import { getActiveConditions, reduceConditionActions } from "utils/conditions"
@ -139,7 +138,7 @@
// Derive definition properties which can all be optional, so need to be
// coerced to booleans
$: invalidSettings = $componentErrors[instance._id]
$: invalidSettings = $builderStore.componentErrors[instance._id]
$: hasChildren = !!definition?.hasChildren
$: showEmptyState = definition?.showEmptyState !== false
$: hasMissingRequiredSettings = missingRequiredSettings?.length > 0

View File

@ -1,6 +0,0 @@
import { derived } from "svelte/store"
import { builderStore } from "../builder.js"
export const componentErrors = derived([builderStore], ([$builderStore]) => {
return $builderStore.componentErrors
})

View File

@ -5,4 +5,3 @@ export { currentRole } from "./currentRole.js"
export { dndComponentPath } from "./dndComponentPath.js"
export { devToolsEnabled } from "./devToolsEnabled.js"
export { snippets } from "./snippets.js"
export { componentErrors } from "./componentErrors"