mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-30 03:01:54 +00:00
Fix audio widget serialize option (#910)
This commit is contained in:
@@ -95,11 +95,9 @@ app.registerExtension({
|
|||||||
const audioUIWidget: DOMWidget<HTMLAudioElement> = node.addDOMWidget(
|
const audioUIWidget: DOMWidget<HTMLAudioElement> = node.addDOMWidget(
|
||||||
inputName,
|
inputName,
|
||||||
/* name=*/ 'audioUI',
|
/* name=*/ 'audioUI',
|
||||||
audio
|
audio,
|
||||||
|
{ serialize: false }
|
||||||
)
|
)
|
||||||
// @ts-expect-error
|
|
||||||
// TODO: Sort out the DOMWidget type.
|
|
||||||
audioUIWidget.serialize = false
|
|
||||||
|
|
||||||
const isOutputNode = node.constructor.nodeData.output_node
|
const isOutputNode = node.constructor.nodeData.output_node
|
||||||
if (isOutputNode) {
|
if (isOutputNode) {
|
||||||
@@ -193,10 +191,10 @@ app.registerExtension({
|
|||||||
/* value=*/ '',
|
/* value=*/ '',
|
||||||
() => {
|
() => {
|
||||||
fileInput.click()
|
fileInput.click()
|
||||||
}
|
},
|
||||||
|
{ serialize: false }
|
||||||
)
|
)
|
||||||
uploadWidget.label = 'choose file to upload'
|
uploadWidget.label = 'choose file to upload'
|
||||||
uploadWidget.serialize = false
|
|
||||||
|
|
||||||
return { widget: uploadWidget }
|
return { widget: uploadWidget }
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user