From 1c0ac119f42a84402b711f2b23ac9bddbaedc1ec Mon Sep 17 00:00:00 2001 From: codetypes Date: Wed, 17 Apr 2024 11:47:29 +0800 Subject: [PATCH] fix show '0' char on inspector --- src/components/inspector.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/inspector.tsx b/src/components/inspector.tsx index 28b64a8..381489a 100644 --- a/src/components/inspector.tsx +++ b/src/components/inspector.tsx @@ -242,7 +242,7 @@ export const Inspector: FC = () => { /> {def.doc} - {def.input?.length && ( + {def.input && def.input.length > 0 && ( <>

{t("node.inputVariable")}

@@ -272,7 +272,7 @@ export const Inspector: FC = () => { })} )} - {def.args?.length && ( + {def.args && def.args.length > 0 && ( <>

{t("node.args")}

@@ -319,7 +319,7 @@ export const Inspector: FC = () => { })} )} - {def.output?.length && ( + {def.output && def.output.length > 0 && ( <>

{t("node.outputVariable")}