Skip to content

Commit

Permalink
Fix structure field sortBy issue #5448
Browse files Browse the repository at this point in the history
  • Loading branch information
afbora committed Aug 3, 2023
1 parent f0d0448 commit 7ab7007
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions panel/src/components/Forms/Field/StructureField.vue
Original file line number Diff line number Diff line change
Expand Up @@ -302,11 +302,13 @@ export default {
);
}
},
watch: {
value(value) {
this.items = this.toItems(value);
}
},
watch: {
value(value) {
if (value !== this.items) {
this.items = this.toItems(value);
}
}
},
methods: {
/**
* Adds new entry
Expand Down

0 comments on commit 7ab7007

Please sign in to comment.