diff --git a/client/src/views/record/detail.js b/client/src/views/record/detail.js index 7664f5555c..e726e1a220 100644 --- a/client/src/views/record/detail.js +++ b/client/src/views/record/detail.js @@ -3294,7 +3294,7 @@ class DetailRecordView extends BaseRecordView { /** * Called after save or cancel. By default, redirects a page. Can be overridden in options. * - * @param {string} after Name of an action (`save`, `cancel,` etc.) after which #exit is invoked. + * @param {string|'save'|'cancel'|'delete'} after Name of an action after which #exit is invoked. */ exit(after) { if (after) { @@ -3320,10 +3320,7 @@ class DetailRecordView extends BaseRecordView { url = this.options.rootUrl || '#' + this.scope; this.getRouter().navigate(url, {trigger: false}); - - this.getRouter().dispatch(this.scope, null, { - isReturn: true - }); + this.getRouter().dispatch(this.scope, null, {isReturn: true}); return; }