Skip to content

Commit 4439a6f

Browse files
committed
fix: update block component when field list type changes (#30)
1 parent b48dd4b commit 4439a6f

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@blokkli/editor",
3-
"version": "1.0.3",
3+
"version": "1.0.4",
44
"description": "Interactive page building experience for Nuxt",
55
"repository": "blokkli/editor",
66
"type": "module",

src/runtime/components/BlokkliField.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
>
3030
<BlokkliItem
3131
v-for="(item, i) in filteredList"
32-
:key="item.uuid"
32+
:key="item.uuid + fieldListType"
3333
v-bind="item"
3434
:parent-type="isNested ? entity?.bundle : ''"
3535
:data-uuid="isPreview ? item.uuid : undefined"

src/runtime/components/Edit/DraggableList.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
>
2121
<BlokkliItem
2222
v-for="(item, i) in list"
23-
:key="item.uuid"
23+
:key="item.uuid + fieldListType"
2424
:uuid="item.uuid"
2525
:bundle="item.bundle"
2626
:is-new="item.isNew"

0 commit comments

Comments
 (0)