소스 검색

new change

tripeur 4 년 전
부모
커밋
25e4e74f0f
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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);
           }
         }
     }