6f647 unable to add a block (#411)

* fix store content bug

* fix: form field indexing bug on working form store

* fix column width on  form fied

---------

Co-authored-by: Julien Nahum <julien@nahum.net>
This commit is contained in:
Favour Olayinka
2024-05-22 08:38:22 +01:00
committed by GitHub
parent 443f4ef7b9
commit 292e32959b
2 changed files with 3 additions and 3 deletions

View File

@@ -129,8 +129,8 @@ export const useWorkingFormStore = defineStore("working_form", {
}
newBlock.help_position = "below_input"
if (
this.selectedFieldIndex === null ||
this.selectedFieldIndex === undefined
(this.selectedFieldIndex === null || this.selectedFieldIndex === undefined) &&
(index === null || index === undefined)
) {
const newFields = clonedeep(this.content.properties)
newFields.push(newBlock)