Closed ghost closed 7 years ago
It should be:
(frames[id] instanceof Array ? frames[id][0] : frames[id]).data
not
frames[id].data
You should do that. Because sometimes when a song file has 2 comments or 2 something. comment prop shortcut would be undefined.
comment
This doesn't just apply to comment. It does apply to all shortcuts.
It should be:
(frames[id] instanceof Array ? frames[id][0] : frames[id]).data
not
frames[id].data