From 43ccc769606dfb2f69473f0ce5ccd437418a18e0 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Wed, 25 Sep 2019 14:22:06 +0300 Subject: [PATCH] fix(client) change directory with enabled dirStorage (#255) --- client/client.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/client/client.js b/client/client.js index aaf0abf1..80c61d4a 100644 --- a/client/client.js +++ b/client/client.js @@ -340,7 +340,7 @@ function CloudCmdProto(DOM) { * @param callback * */ - function ajaxLoad(path, options, panel, callback) { + async function ajaxLoad(path, options, panel, callback) { const {Dialog, RESTful} = DOM; const create = async (error, json) => { @@ -392,7 +392,8 @@ function CloudCmdProto(DOM) { if (!CloudCmd.config('dirStorage')) return create(); - Storage.get(path, create); + const data = await Storage.get(path); + create(null, data); } /**