From 4a698709dae22883a82f53a71b1ff6c787839023 Mon Sep 17 00:00:00 2001 From: Artur Arseniev Date: Fri, 2 Jun 2017 00:38:51 +0200 Subject: [PATCH] Fix undefined keys variable --- src/editor/model/Editor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/editor/model/Editor.js b/src/editor/model/Editor.js index ca03735e9..b705be166 100644 --- a/src/editor/model/Editor.js +++ b/src/editor/model/Editor.js @@ -486,7 +486,7 @@ module.exports = Backbone.Model.extend({ this.get('storables').forEach(m => { var key = m.storageKey; key = typeof key === 'function' ? key() : key; - keys = key instanceof Array ? key : [key]; + var keys = key instanceof Array ? key : [key]; keys.forEach(k => { load.push(k); });