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) {