Selaa lähdekoodia

history bug fix

bach 1 vuosi sitten
vanhempi
commit
954ae2ca0d
1 muutettua tiedostoa jossa 3 lisäystä ja 2 poistoa
  1. 3 2
      src/components/ConcernementMapItem.vue

+ 3 - 2
src/components/ConcernementMapItem.vue

@@ -200,8 +200,9 @@ export default {
       handler (n, o){
         // check for active_revision changes
         // do not trigger on first variable filling (if o is null)
-        if(o && o.active_revision && n.active_revision){
-          // console.log(`concernementMapItem watch concernement o.active_revision:${o.active_revision}, n.active_revision:${n.active_revision}`);
+        if(this.is_open && o && o.active_revision && n.active_revision){
+          // be aware that here o & n active_revision are already the same :( !?
+          console.log(`concernementMapItem watch concernement o.active_revision:${o.active_revision}, n.active_revision:${n.active_revision}`);
           this.resetPaperActiveRevision();
         }
       },