Skip to content

Commit d119308

Browse files
committed
small fix for value that are 0 .. and should be shown by the node-tree visualizer
1 parent d7b3669 commit d119308

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

libs/web-flow-executor/src/nodes/node-tree-visualizer.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ export const getNodeTreeVisualizer = (
5050
const nodeClass = payload?.nodeClass ?? '';
5151
let data = `${label}${(payload?.data ?? '-').toString()}`;
5252
if (
53-
!payload?.data ||
53+
payload?.data === undefined ||
54+
payload?.data === null ||
5455
(Array.isArray(payload?.data) && !payload?.data.length)
5556
) {
5657
data = '-';

libs/web-flow-executor/src/nodes/send-node-to-node-tree.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ export const sendNodeToNodeTree: NodeTaskFactory<NodeInfo> = (
9292
payloadForExpression,
9393
false,
9494
info.payloadProperties
95-
) || '-';
95+
) ?? '-';
9696
}
9797
}
9898
//console.log('commandHandlerName', commandHandlerName, input);

0 commit comments

Comments
 (0)