From 05b6f6d8a2b7e673dbf61273e533e552134c5b69 Mon Sep 17 00:00:00 2001 From: Chenlei Hu Date: Tue, 4 Mar 2025 16:05:12 -0500 Subject: [PATCH] [Cleanup] Remove unused LGraphNode.callback (#2857) --- src/composables/widgets/useImageUploadWidget.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/composables/widgets/useImageUploadWidget.ts b/src/composables/widgets/useImageUploadWidget.ts index 20804fd5e..532817507 100644 --- a/src/composables/widgets/useImageUploadWidget.ts +++ b/src/composables/widgets/useImageUploadWidget.ts @@ -92,13 +92,9 @@ export const useImageUploadWidget = () => { ) uploadWidget.label = t('g.choose_file_to_upload') - // TODO: Explain this? - // @ts-expect-error LGraphNode.callback is not typed // Add our own callback to the combo widget to render an image when it changes - const cb = node.callback - fileComboWidget.callback = function (...args) { + fileComboWidget.callback = function () { nodeOutputStore.setNodeOutputs(node, fileComboWidget.value) - if (cb) return cb.apply(this, args) } // On load if we have a value then render the image