fix: Fix issues with nodes missing in nodes panel (#5599)

* fix: Fix issues with nodes missing in nodes panel

* fix: fix logic for deteriming app category

* chore: add comment

* chore: remove sort
This commit is contained in:
Mutasem Aldmour
2023-03-02 18:27:56 +03:00
committed by GitHub
parent 4f5013ff53
commit 5040fea93e
3 changed files with 33 additions and 29 deletions

View File

@@ -105,7 +105,10 @@ const displayName = computed<any>(() => {
return instance?.proxy.$locale.headerText({
key: `headers.${shortNodeType}.displayName`,
fallback: props.allowActions ? displayName.replace('Trigger', '') : displayName,
fallback:
props.allowActions && props.nodeType.actions?.length
? displayName.replace('Trigger', '')
: displayName,
});
});