fixed up alias issues
This commit is contained in:
1 parent
98133607ca
commit
cdf67aa1a9
20 files changed
+52
-76
No files matched your search
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user