Skip to content

Commit

Permalink
Update Clip.ts
Browse files Browse the repository at this point in the history
Switched around the clip type detection ternary statement as mentioned in issue #29
  • Loading branch information
jeffgca authored and ricardomatias committed Sep 29, 2024
1 parent afbe550 commit 22b42d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Clip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ export class Clip extends Properties<

this._id = parseInt(raw.id, 10);
this._name = raw.name;
this._type = raw.is_audio_clip ? ClipType.Midi : ClipType.Audio;
this._type = raw.is_audio_clip ? ClipType.Audio : ClipType.Midi;
this._length = raw.length;

this.childrenTransformers = {
Expand Down

0 comments on commit 22b42d1

Please sign in to comment.