Skip to content

EspoCRM – Open Source CRM Application

Type fix

Yurii057751cbf1cd
diff --git a/client/src/model.ts b/client/src/model.ts
index ff0369d54f..5df06ac32b 100644
--- a/client/src/model.ts
+++ b/client/src/model.ts
@@ -153,7 +153,7 @@ export default class Model<T extends Record<string, unknown> = Record<string, an
* Definitions.
* @internal
*/
- protected defs: Defs
+ public defs: Defs
constructor(
attributes?: Partial<T> | Model<T>,
diff --git a/client/src/views/record/panels/relationship.js b/client/src/views/record/panels/relationship.js
index a70cd1d840..e065d78fa2 100644
--- a/client/src/views/record/panels/relationship.js
+++ b/client/src/views/record/panels/relationship.js
@@ -955,7 +955,6 @@ class RelationshipPanelView extends BottomPanelView {
return;
}
- /** @type {module:model} */
const model = this.model;
const entityType = model.getLinkParam(this.link, 'entity');