Browse Source
Merge pull request #5722 from Budibase/fix/missing-component-store
Fix missing component store (form step issues + duplicate issues)
pull/5758/head
Martin McKeaveney
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with
4 additions and
2 deletions
-
packages/client/src/components/app/forms/FormStep.svelte
-
packages/client/src/components/preview/SettingsBar.svelte
-
packages/client/src/sdk.js
|
|
|
@ -22,7 +22,7 @@ |
|
|
|
if ( |
|
|
|
formContext && |
|
|
|
$builderStore.inBuilder && |
|
|
|
$componentStore?.selectedComponentPath?.includes($component.id) |
|
|
|
$componentStore.selectedComponentPath?.includes($component.id) |
|
|
|
) { |
|
|
|
formContext.formApi.setStep(step) |
|
|
|
} |
|
|
|
|
|
|
|
@ -155,7 +155,7 @@ |
|
|
|
icon="Duplicate" |
|
|
|
on:click={() => { |
|
|
|
builderStore.actions.duplicateComponent( |
|
|
|
$builderStore.selectedComponent._id |
|
|
|
$builderStore.selectedComponentId |
|
|
|
) |
|
|
|
}} |
|
|
|
title="Duplicate component" |
|
|
|
|
|
|
|
@ -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, |
|
|
|
|