diff --git a/client/src/views/modals/detail.js b/client/src/views/modals/detail.js index 8b86d675b8..9d2e0e1545 100644 --- a/client/src/views/modals/detail.js +++ b/client/src/views/modals/detail.js @@ -138,6 +138,10 @@ Espo.define('views/modals/detail', 'views/modal', function (Dep) { this.createRecordView(); } }, this); + + this.listenToOnce(this.getRouter(), 'routed', function () { + this.remove(); + }, this); }, addEditButton: function () {