Fix audio upload when no audio in input dir (#3891)

This commit is contained in:
Chenlei Hu 2024-06-27 09:13:52 -04:00 committed by GitHub
parent 4f9d2b057c
commit 5ff3d4eb3a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

View File

@ -145,7 +145,9 @@ app.registerExtension({
)
}
// Initially load default audio file to audioUIWidget.
onAudioWidgetUpdate()
if (audioWidget.value) {
onAudioWidgetUpdate()
}
audioWidget.callback = onAudioWidgetUpdate
const fileInput = document.createElement("input")