mirror of
https://github.com/stagehacks/Cue-View.git
synced 2026-08-09 15:53:38 +00:00
bugfix error when no playbackPos
This commit is contained in:
@@ -236,8 +236,10 @@ exports.update = function update(device, doc, updateType, data) {
|
||||
const $elem = doc.getElementById(data.workspace.selected[i]);
|
||||
$elem.classList.add('selected');
|
||||
}
|
||||
const $elem = doc.getElementById(data.workspace.playbackPosition);
|
||||
$elem.classList.add('playback-position');
|
||||
if (data.workspace.playbackPosition) {
|
||||
const $elem = doc.getElementById(data.workspace.playbackPosition);
|
||||
$elem.classList.add('playback-position');
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user