1
0
Fork 0
mirror of synced 2024-09-10 14:35:47 +12:00

Merge pull request #5722 from Budibase/fix/missing-component-store

Fix missing component store (form step issues + duplicate issues)
This commit is contained in:
Martin McKeaveney 2022-05-06 16:26:29 +01:00 committed by GitHub
commit 996f5d6110
3 changed files with 4 additions and 2 deletions

View file

@ -22,7 +22,7 @@
if (
formContext &&
$builderStore.inBuilder &&
$componentStore?.selectedComponentPath?.includes($component.id)
$componentStore.selectedComponentPath?.includes($component.id)
) {
formContext.formApi.setStep(step)
}

View file

@ -155,7 +155,7 @@
icon="Duplicate"
on:click={() => {
builderStore.actions.duplicateComponent(
$builderStore.selectedComponent._id
$builderStore.selectedComponentId
)
}}
title="Duplicate component"

View file

@ -7,6 +7,7 @@ import {
builderStore,
uploadStore,
rowSelectionStore,
componentStore,
} from "stores"
import { styleable } from "utils/styleable"
import { linkable } from "utils/linkable"
@ -24,6 +25,7 @@ export default {
screenStore,
builderStore,
uploadStore,
componentStore,
styleable,
linkable,
getAction,