Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
_.each(timelineObjs, (obj) => {
if (obj.content.type === TimelineContentTypeLawo.SOURCE) {
let lawoObj = obj as TimelineObjLawo & TimelineObjGeneric
_.each(lawoObj.content.attributes, (val, key) => {
// set triggerValue to the current playing segment, thus triggering commands to be sent when nexting:
lawoObj.content.attributes[key].triggerValue = currentPartId || ''
})
}
})
}