Skip to content

EspoCRM – Open Source CRM Application

Fix off

Yuriie2a922945cd6
diff --git a/client/src/view-record-helper.ts b/client/src/view-record-helper.ts
index dfcc122816..a4dd99a590 100644
--- a/client/src/view-record-helper.ts
+++ b/client/src/view-record-helper.ts
@@ -251,7 +251,7 @@ export default class ViewRecordHelper {
* @param {function()} [callback] From a specific callback.
*/
off(name?: string, callback?: (...args: unknown[]) => void): this {
- Events.off.call(this, name, callback);
+ Events.off.call(this, name, callback, arguments[2]);
return this;
}