Skip to content

Commit

Permalink
refactor code
Browse files Browse the repository at this point in the history
  • Loading branch information
armine-fliplet committed Nov 6, 2024
1 parent 93d9f01 commit 0a188d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/components/map.js
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ Fliplet.FormBuilder.field('map', {

if (this.required && !this.readonly) {
rules.value.required = function() {
return this.value && this.value.address ? true : false;
return !!(this.value?.address);
};
}

Expand Down

0 comments on commit 0a188d3

Please sign in to comment.