From 96255d12419fc37365a6509217e264c1f1edee2b Mon Sep 17 00:00:00 2001 From: Sergey Date: Thu, 6 Jul 2023 23:40:24 +0100 Subject: [PATCH] fix: LSDV-4659: Fix memory leak with LSF destroying --- src/sdk/dm-sdk.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/sdk/dm-sdk.js b/src/sdk/dm-sdk.js index 0deb413b..d081c88b 100644 --- a/src/sdk/dm-sdk.js +++ b/src/sdk/dm-sdk.js @@ -161,7 +161,7 @@ export class DataManager { this.panels = config.panels; this.spinner = config.spinner; this.spinnerSize = config.spinnerSize; - this.instruments = prepareInstruments(config.instruments ?? {}), + this.instruments = prepareInstruments(config.instruments ?? {}); this.apiTransform = config.apiTransform ?? {}; this.preload = config.preload ?? {}; this.interfaces = objectToMap({ @@ -253,7 +253,7 @@ export class DataManager { } /** - * @param {impotr("../stores/Action.js").Action} action + * @param {import("../stores/Action.js").Action} action */ addAction(action, callback) { const { id } = action; @@ -451,6 +451,7 @@ export class DataManager { } destroy(detachCallbacks = true) { + this.destroyLSF(); unmountComponentAtNode(this.root); if (this.store) {