Skip to content

EspoCRM – Open Source CRM Application

ref

Yurii69cb68cd272a
diff --git a/client/src/views/fields/bool.js b/client/src/views/fields/bool.js
index 6394146a63..a97feff559 100644
--- a/client/src/views/fields/bool.js
+++ b/client/src/views/fields/bool.js
@@ -95,8 +95,10 @@ class BoolFieldView extends BaseFieldView {
}
fetch() {
- // noinspection JSUnresolvedReference
- const value = this.$element.get(0).checked;
+ const element = /** @type {HTMLInputElement|null} */
+ this.mainInputElement;
+
+ const value = element?.checked
const data = {};