Pārlūkot izejas kodu

Fix "can't set timers inside simulations error" when moving cards with start/due dates.

shoetten 9 gadi atpakaļ
vecāks
revīzija
33b74a465e
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      client/components/cards/cardDate.js

+ 1 - 1
client/components/cards/cardDate.js

@@ -136,7 +136,7 @@ const CardDate = BlazeComponent.extendComponent({
     const self = this;
     const self = this;
     self.date = ReactiveVar();
     self.date = ReactiveVar();
     self.now = ReactiveVar(moment());
     self.now = ReactiveVar(moment());
-    Meteor.setInterval(() => {
+    window.setInterval(() => {
       self.now.set(moment());
       self.now.set(moment());
     }, 60000);
     }, 60000);
   },
   },