Fix audio widget serialize option (#910)

This commit is contained in:
bymyself
2024-09-21 19:54:07 -07:00
committed by GitHub
parent 290bf52fc5
commit a15c4d1612

View File

@@ -95,11 +95,9 @@ app.registerExtension({
const audioUIWidget: DOMWidget<HTMLAudioElement> = node.addDOMWidget(
inputName,
/* 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
if (isOutputNode) {
@@ -193,10 +191,10 @@ app.registerExtension({
/* value=*/ '',
() => {
fileInput.click()
}
},
{ serialize: false }
)
uploadWidget.label = 'choose file to upload'
uploadWidget.serialize = false
return { widget: uploadWidget }
}