Skip to content

Commit 0e77b86

Browse files
committed
added missing type
1 parent a633163 commit 0e77b86

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/composables/node/useNodePricing.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { LGraphNode } from '@/lib/litegraph/src/litegraph'
1+
import type { INodeInputSlot, LGraphNode } from '@/lib/litegraph/src/litegraph'
22
import type { IComboWidget } from '@/lib/litegraph/src/types/widgets'
33

44
/**
@@ -181,12 +181,10 @@ const apiNodeCosts: Record<string, { displayPrice: string | PricingFunction }> =
181181
) as IComboWidget
182182
const characterInput = node.inputs?.find(
183183
(i) => i.name === 'character_image'
184-
) as any
184+
) as INodeInputSlot
185185
const hasCharacter =
186-
(typeof characterInput?.link !== 'undefined' &&
187-
characterInput.link != null) ||
188-
(Array.isArray(characterInput?.links) &&
189-
characterInput.links.length > 0)
186+
typeof characterInput?.link !== 'undefined' &&
187+
characterInput.link != null
190188

191189
if (!renderingSpeedWidget)
192190
return '$0.03-0.08 x num_images/Run (varies with rendering speed & num_images)'

0 commit comments

Comments
 (0)