Skip to content

Commit 0361f79

Browse files
[6.x] Ensure sets in imported fields can be overridden (#13790)
1 parent 1742e30 commit 0361f79

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

  • resources/js/components/blueprints

resources/js/components/blueprints/Tabs.vue

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ export default {
128128
129129
data() {
130130
return {
131-
tabs: this.initialTabs,
131+
tabs: clone(this.initialTabs),
132132
currentTab: this.initialTabs.length ? this.initialTabs[0]._id : null,
133133
lastInteractedTab: null,
134134
hiddenTabs: [],
@@ -142,10 +142,13 @@ export default {
142142
},
143143
144144
watch: {
145-
tabs(tabs) {
146-
this.$emit('updated', tabs);
147-
this.makeSortable();
148-
},
145+
tabs: {
146+
deep: true,
147+
handler(tabs) {
148+
this.$emit('updated', tabs);
149+
this.makeSortable();
150+
},
151+
},
149152
},
150153
151154
mounted() {

0 commit comments

Comments
 (0)