update npm version
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
</p>
|
||||
<div *ngIf="showSongs" class="song-list" cdkDropList [cdkDropListDisabled]="show.published"
|
||||
(cdkDropListDropped)="drop($event, show)">
|
||||
<div *ngFor="let song of orderedShowSongs(show); let i = index" class="song-row" cdkDrag>
|
||||
<div *ngFor="let song of orderedShowSongs(show); let i = index; trackBy: trackBy" class="song-row" cdkDrag>
|
||||
<app-song
|
||||
[showSong]="song"
|
||||
[showId]="showId"
|
||||
|
||||
@@ -115,4 +115,6 @@ export class ShowComponent implements OnInit {
|
||||
if (!list) return [];
|
||||
return show.order.map(_ => list.filter(f => f.id === _)[0]);
|
||||
}
|
||||
|
||||
public trackBy = (index: number, show: ShowSong) => show.id;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user