Skip to content

Commit

Permalink
fix ESLint error
Browse files Browse the repository at this point in the history
  • Loading branch information
armine-fliplet committed Nov 6, 2024
1 parent 0a188d3 commit 26a4999
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?.address);
return !!(this.value && this.value.address);
};
}

Expand Down

0 comments on commit 26a4999

Please sign in to comment.