Skip to content

Commit c880658

Browse files
author
Mateusz Dębiński
committed
IBX-11480: Corrected cast to boolean in setBooleanValue
1 parent fa2f98e commit c880658

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bundle/Resources/public/js/CKEditor/custom-tags/ui/custom-tag-form-view.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ class IbexaCustomTagFormView extends View {
8686
}
8787

8888
setBooleanValue(attributeView, value) {
89-
attributeView.fieldView.isOn = !!value || value === 'true';
89+
attributeView.fieldView.isOn = value === 'true';
9090
attributeView.fieldView.element.value = value;
9191
attributeView.fieldView.set('value', value);
9292
attributeView.fieldView.set('isEmpty', false);

0 commit comments

Comments
 (0)