Browse Source

new change

tripeur 4 năm trước cách đây
mục cha
commit
25e4e74f0f
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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);
           }
         }
     }