Skip to content

Commit d7979b0

Browse files
committed
Fix video annotation reactive label update
1 parent 8c5c7a7 commit d7979b0

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

resources/assets/js/videos/models/Annotation.vue

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export default class Annotation {
1616
this.shape_id = args.shape_id;
1717
this.created_at = args.created_at;
1818
this.updated_at = args.updated_at;
19-
this.labels = args.labels;
19+
this._labels = ref(args.labels);
2020
2121
this._pending = ref(args.pending || false);
2222
this._selected = ref(false);
@@ -56,6 +56,14 @@ export default class Annotation {
5656
this._tracking.value = value;
5757
}
5858
59+
get labels() {
60+
return this._labels.value;
61+
}
62+
63+
set labels(value) {
64+
this._labels.value = value;
65+
}
66+
5967
get frames() {
6068
return this._frames.value;
6169
}

0 commit comments

Comments
 (0)