Browse Source

new change

tripeur 4 years ago
parent
commit
25e4e74f0f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Timeline.ts

+ 1 - 1
src/Timeline.ts

@@ -237,7 +237,7 @@ class Timeline extends LitElement {
             this.addEvents(content.items);
           } else {
             ressource[key] = value;
-            this.rows[this.rows.findIndex(r=>r.id==ressource.id)] =  ressource;
+            this.rows = this.rows.map(r=>r.id==ressource.id ? ressource : r);
           }
         }
     }