fix problem creating notes with audio when audio is disabled
This commit is contained in:
parent
ccb740da58
commit
e6b592b4c0
@ -103,6 +103,10 @@ function audioBuildFilename(definition) {
|
||||
}
|
||||
|
||||
function audioInject(definition, fields, mode) {
|
||||
if (mode === 'disabled') {
|
||||
return Promise.resolve(true);
|
||||
}
|
||||
|
||||
const filename = audioBuildFilename(definition);
|
||||
if (!filename) {
|
||||
return Promise.resolve(true);
|
||||
|
Loading…
Reference in New Issue
Block a user