src_js/iconolab-bundle/src/components/editor/AnnotationForm.vue
changeset 327 44a122f0f2de
parent 325 8f158a4c7759
child 333 625ac8b8bb87
--- a/src_js/iconolab-bundle/src/components/editor/AnnotationForm.vue	Mon Feb 20 18:43:34 2017 +0100
+++ b/src_js/iconolab-bundle/src/components/editor/AnnotationForm.vue	Mon Feb 20 19:05:48 2017 +0100
@@ -45,7 +45,13 @@
         watch: {
             annotation: function(annotation) {
                 if (annotation) {
-                    Object.assign(this, annotation);
+                    // Make sure we have an actual copy
+                    Object.assign(this, {
+                        'title': annotation.title,
+                        'description': annotation.description,
+                        'fragment': annotation.fragment,
+                        'tags': annotation.tags.slice()
+                    });
                 } else {
                     this.reset();
                 }