show node group in inspector

This commit is contained in:
codetypes committed 2025-03-20 23:19:42 +08:00
1 parent 170dffb82c
commit 195028b62c
7 files changed
+87 -60

No files matched your search

+1 -1
View File
@@ -325,7 +325,7 @@ export const Explorer: FC = () => {
};
workspace.nodeDefs.forEach((nodeDef) => {
(nodeDef.group || [""]).forEach((g, idx) => {
const typeGroup = !g ? nodeDef.type : nodeDef.type.replace(/\(([\w|]+)\)/, `(${g})`);
const typeGroup = !g ? nodeDef.type : `${nodeDef.type} (${g})`;
let catalog = data.children?.find((nt) => nt.title === typeGroup);
if (!catalog) {
const type = getNodeType(nodeDef);