cleaned up styles for node display

This commit is contained in:
ari committed 2022-06-29 15:07:55 -04:00
1 parent 9a43330501
commit 4d9afbe26b
10 files changed
+173 -68

No files matched your search

+7 -1
View File
@@ -77,7 +77,13 @@ export const getDescriptionFromAutomationNode = <
node.condition === "or" ||
node.condition === "not"
) {
return "Logic";
if (node.conditions.length === 0) {
return `None`;
}
const childConditions = node.conditions.map((c) =>
getDescriptionFromAutomationNode(c, namer, allowJs)
);
return childConditions.join(` ${node.condition} `).trim() ?? "None";
} else {
switch (node.condition) {
case "numeric_state":