feat(editor): Do not show actions panel for single-action nodes (#5683)
This commit is contained in:
@@ -56,6 +56,8 @@ const customNodeActionsParsers: {
|
||||
};
|
||||
|
||||
function filterActions(actions: INodeActionTypeDescription[]) {
|
||||
// Do not show single action nodes
|
||||
if (actions.length <= 1) return [];
|
||||
return actions.filter(
|
||||
(action: INodeActionTypeDescription, _: number, arr: INodeActionTypeDescription[]) => {
|
||||
const isApiCall = action.actionKey === CUSTOM_API_CALL_KEY;
|
||||
|
||||
Reference in New Issue
Block a user