mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-29 02:32:18 +00:00
[Cleanup] Remove unused LGraphNode.callback (#2857)
This commit is contained in:
@@ -92,13 +92,9 @@ export const useImageUploadWidget = () => {
|
|||||||
)
|
)
|
||||||
uploadWidget.label = t('g.choose_file_to_upload')
|
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
|
// Add our own callback to the combo widget to render an image when it changes
|
||||||
const cb = node.callback
|
fileComboWidget.callback = function () {
|
||||||
fileComboWidget.callback = function (...args) {
|
|
||||||
nodeOutputStore.setNodeOutputs(node, fileComboWidget.value)
|
nodeOutputStore.setNodeOutputs(node, fileComboWidget.value)
|
||||||
if (cb) return cb.apply(this, args)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// On load if we have a value then render the image
|
// On load if we have a value then render the image
|
||||||
|
|||||||
Reference in New Issue
Block a user