From 13987c43d85b3d22320295c5d5095a1ee14c51a5 Mon Sep 17 00:00:00 2001 From: Matias Arriola Date: Tue, 25 Jan 2022 11:27:49 -0300 Subject: [PATCH] fix lint --- packages/mindplot/src/index.js | 2 +- packages/mindplot/src/indexLoader.ts | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/mindplot/src/index.js b/packages/mindplot/src/index.js index 3774eac3..6cdeed3a 100644 --- a/packages/mindplot/src/index.js +++ b/packages/mindplot/src/index.js @@ -46,5 +46,5 @@ export { LocalStorageManager, DesignerOptionsBuilder, buildDesigner, - $notify + $notify, }; diff --git a/packages/mindplot/src/indexLoader.ts b/packages/mindplot/src/indexLoader.ts index 8c405551..ffb034f7 100644 --- a/packages/mindplot/src/indexLoader.ts +++ b/packages/mindplot/src/indexLoader.ts @@ -46,7 +46,11 @@ if (!global.memoryPersistence && !global.readOnly) { session: global.lockSession, }); } else { - persistence = new LocalStorageManager(`/c/restful/maps/{id}/${global.historyId ? `${global.historyId}/` : ''}document/xml${!global.isAuth ? '-pub' : ''}`, true); + const historyId = global.historyId ? `${global.historyId}/` : ''; + persistence = new LocalStorageManager( + `/c/restful/maps/{id}/${historyId}document/xml${!global.isAuth ? '-pub' : ''}`, + true, + ); } // Obtain map zoom from query param if it was specified...