Commit 9acaa833 authored by Boris Kocherov's avatar Boris Kocherov

erp5_officejs: schema_editor: fix first automatic sync

parent 977aab97
...@@ -75,10 +75,15 @@ ...@@ -75,10 +75,15 @@
} }
return RSVP.Queue() return RSVP.Queue()
.push(function () { .push(function () {
return context.getSetting('jio_storage_name'); return RSVP.all([
context.getSetting('jio_storage_name'),
context.getSetting('sync_reload', false)
]);
}) })
.push(function (storage_name) { .push(function (result) {
if (!storage_name) { var storage_name = result[0],
sync_reload = result[1];
if (!storage_name || sync_reload) {
return ["[]", true]; return ["[]", true];
} }
return RSVP.all([ return RSVP.all([
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment