fixed up alias issues

This commit is contained in:
ari committed 2022-05-27 12:02:25 -04:00
1 parent 98133607ca
commit cdf67aa1a9
20 files changed
+52 -76

No files matched your search

+5 -1
View File
@@ -16,10 +16,14 @@ export const convertTimeToString = (t: AutomationTime) => {
}
}
export const getDescriptionFromAutomationNode = <N extends AutomationNodeTypes>(node: AutomationNode<N>): string => {
if (node.alias) {
if (('alias' in node) && node.alias) {
return node.alias;
}
if ('platform' in node) {
if (node.id) {
return node.id ?? '';
}
if (node.platform === 'time') {
return node.at
}