From 9af6aef614f691e799ff2cefd9a672ef33d7c86a Mon Sep 17 00:00:00 2001 From: codetypes Date: Thu, 20 Mar 2025 01:24:19 +0800 Subject: [PATCH] update icons --- public/icons/Condition.svg | 2 +- public/icons/Decorator.svg | 2 +- src/components/explorer.tsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/public/icons/Condition.svg b/public/icons/Condition.svg index c6fafe1..01a615c 100644 --- a/public/icons/Condition.svg +++ b/public/icons/Condition.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/public/icons/Decorator.svg b/public/icons/Decorator.svg index 4b10007..c6fafe1 100644 --- a/public/icons/Decorator.svg +++ b/public/icons/Decorator.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/components/explorer.tsx b/src/components/explorer.tsx index ba0c268..a14b84a 100644 --- a/src/components/explorer.tsx +++ b/src/components/explorer.tsx @@ -324,7 +324,7 @@ export const Explorer: FC = () => { }, }; workspace.nodeDefs.forEach((nodeDef) => { - (nodeDef.group || []).forEach((g, idx) => { + (nodeDef.group || [""]).forEach((g, idx) => { const typeGroup = !g ? nodeDef.type : nodeDef.type.replace(/\(([\w|]+)\)/, `(${g})`); let catalog = data.children?.find((nt) => nt.title === typeGroup); if (!catalog) {