Skip to content

EspoCRM – Open Source CRM Application

Fix

Yuriia03162cfbeb6
diff --git a/client/src/views/record/panels/relationship.js b/client/src/views/record/panels/relationship.js
index e065d78fa2..67e0d4cb90 100644
--- a/client/src/views/record/panels/relationship.js
+++ b/client/src/views/record/panels/relationship.js
@@ -769,14 +769,15 @@ class RelationshipPanelView extends BottomPanelView {
entityType: scope,
id: id,
model: model,
- })
- .then(view => {
- // @todo Move to afterSave?
- this.listenTo(view, 'after:save', () => {
+ afterSave: model => {
+ if (!model) {
+ return;
+ }
+
this.collection.fetch();
this.processSyncBack();
- });
+ },
});
}