mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-02 06:19:58 +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')
|
||||
|
||||
// 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
|
||||
|
||||
Reference in New Issue
Block a user