fix problem creating notes with audio when audio is disabled

This commit is contained in:
Alex Yatskov 2017-04-03 09:15:06 -07:00
parent ccb740da58
commit e6b592b4c0

View File

@ -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);