From 557e0cb3e68f6d4e847e5f260ba3dbdba126d0ce Mon Sep 17 00:00:00 2001 From: psychedelicious <4822129+psychedelicious@users.noreply.github.com> Date: Fri, 11 Apr 2025 18:51:44 +1000 Subject: [PATCH] chore(ui): knip --- invokeai/frontend/web/src/features/nodes/store/selectors.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/invokeai/frontend/web/src/features/nodes/store/selectors.ts b/invokeai/frontend/web/src/features/nodes/store/selectors.ts index cf835210f1..271c95606d 100644 --- a/invokeai/frontend/web/src/features/nodes/store/selectors.ts +++ b/invokeai/frontend/web/src/features/nodes/store/selectors.ts @@ -5,7 +5,7 @@ import { getElement } from 'features/nodes/components/sidePanel/builder/form-man import type { NodesState } from 'features/nodes/store/types'; import type { FieldInputInstance } from 'features/nodes/types/field'; import type { AnyNode, InvocationNode, InvocationNodeData } from 'features/nodes/types/invocation'; -import { isBatchNode, isGeneratorNode, isInvocationNode } from 'features/nodes/types/invocation'; +import { isInvocationNode } from 'features/nodes/types/invocation'; import { isContainerElement, isNodeFieldElement } from 'features/nodes/types/workflow'; import { uniqBy } from 'lodash-es'; import { assert } from 'tsafe'; @@ -85,10 +85,6 @@ export const selectMayRedo = createSelector( (nodes) => nodes.future.length > 0 ); -export const selectHasBatchOrGeneratorNodes = createSelector(selectNodes, (nodes) => - nodes.filter(isInvocationNode).some((node) => isBatchNode(node) || isGeneratorNode(node)) -); - export const selectWorkflowName = createNodesSelector((nodes) => nodes.name); export const selectWorkflowId = createNodesSelector((workflow) => workflow.id);