Skip to content

Commit

Permalink
fix(tracks): tracks with only static-items collapse
Browse files Browse the repository at this point in the history
  • Loading branch information
christoph-fricke committed Aug 18, 2022
1 parent 416798d commit 883293d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/track.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,8 @@ export class MuttiTrackElement extends LitElement {
}

private applySubTrackInfoToElements(subTracks: SubTracks) {
if (subTracks.length === 0) return;

this.style.setProperty(trackProp.subTracks, `${subTracks.length}`);
subTracks.forEach((track, index) =>
track.forEach((item) => (item.subTrack = index + 1))
Expand Down

0 comments on commit 883293d

Please sign in to comment.