Skip to content

EspoCRM – Open Source CRM Application

Type fix

Yurii97dbfe4239e9
diff --git a/client/src/controllers/base.js b/client/src/controllers/base.js
index 9297de166e..39088790d7 100644
--- a/client/src/controllers/base.js
+++ b/client/src/controllers/base.js
@@ -54,7 +54,9 @@ class BaseController extends Controller {
const [, scope, key] = name.split('-', 3);
const actualKey = `mainView-${scope}-${key}`;
- const view = /** @type {module:view} */this.get(actualKey);
+ const view =
+ /** @type {import('view').default} */
+ this.get(actualKey);
if (view) {
view.remove(true);
@@ -75,7 +77,9 @@ class BaseController extends Controller {
continue;
}
- const view = /** @type {module:view} */this.get(key);
+ const view =
+ /** @type {import('view').default} */
+ this.get(key);
if (view) {
view.remove(true);