Skip to content

Commit a9b7ed2

Browse files
authored
Prevent video output nodes from showing edit model button (#4278)
1 parent 35ee8f2 commit a9b7ed2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/graph/selectionToolbox/EditModelButton.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@ import { useI18n } from 'vue-i18n'
1919
2020
import { useCommandStore } from '@/stores/commandStore'
2121
import { useCanvasStore } from '@/stores/graphStore'
22-
import { isLGraphNode } from '@/utils/litegraphUtil'
22+
import { isImageNode, isLGraphNode } from '@/utils/litegraphUtil'
2323
2424
const { t } = useI18n()
2525
const commandStore = useCommandStore()
2626
const canvasStore = useCanvasStore()
2727
2828
const isImageOutputOrEditModelNode = (node: unknown) =>
2929
isLGraphNode(node) &&
30-
(node.images?.length || node.type === 'workflow>FLUX.1 Kontext Image Edit')
30+
(isImageNode(node) || node.type === 'workflow>FLUX.1 Kontext Image Edit')
3131
3232
const isImageOutputSelected = computed(
3333
() =>

0 commit comments

Comments
 (0)