Skip to content

Commit

Permalink
fix watcher to correctly update on external changes
Browse files Browse the repository at this point in the history
Signed-off-by: Vinzenz Rosenkranz <vinzenz.rosenkranz@uni-tuebingen.de>
  • Loading branch information
v1r0x committed Feb 3, 2025
1 parent d6f15fc commit 3c09df7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions resources/js/components/attribute/List.vue
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@
export default {
props: {
name:{
type: String,
required: false,
name:{
type: String,
required: false,
default: null
},
entries: {
Expand Down Expand Up @@ -153,7 +153,7 @@
value: v.value,
});
});
watch(_ => entries, (newValue, oldValue) => {
watch(_ => entries.value, (newValue, oldValue) => {
state.initialValue = newValue.slice();
resetFieldState();
});
Expand Down

0 comments on commit 3c09df7

Please sign in to comment.