From e6b592b4c06ee18017a03bb5148e2c4b64deb146 Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Mon, 3 Apr 2017 09:15:06 -0700 Subject: [PATCH] fix problem creating notes with audio when audio is disabled --- ext/mixed/js/util.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ext/mixed/js/util.js b/ext/mixed/js/util.js index edd49873..c05fb679 100644 --- a/ext/mixed/js/util.js +++ b/ext/mixed/js/util.js @@ -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);