summaryrefslogtreecommitdiff
path: root/ext/bg/js/options.js
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2017-07-09 15:23:11 -0700
committerAlex Yatskov <alex@foosoft.net>2017-07-09 15:23:11 -0700
commitb3984ccd54340195fc352033f61d33e4b5f492ea (patch)
tree2c75588abd020998c0745f8871a043ae48c77073 /ext/bg/js/options.js
parentd57c5530b7ad56a7cc89782b4d186d8fddb55d86 (diff)
cleanup
Diffstat (limited to 'ext/bg/js/options.js')
-rw-r--r--ext/bg/js/options.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/bg/js/options.js b/ext/bg/js/options.js
index 5aa18366..728ddae4 100644
--- a/ext/bg/js/options.js
+++ b/ext/bg/js/options.js
@@ -337,7 +337,7 @@ function ankiFieldsPopulate(element, options) {
const container = tab.find('tbody').empty();
const modelName = element.val();
- if (modelName === null) {
+ if (!modelName) {
return Promise.resolve();
}