Skip to content

Commit

Permalink
Removed logic from vue statements for readaibility.
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Di Pasquale committed Dec 13, 2024
1 parent 94031f6 commit d8920ad
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/globalFilters/FilterField.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
@change="updateFilterValueFromDropdown($event, filter.comparator, $event.target.value)"
>
<option value="NONE">
{{ filter.defaultLabel || "None" }}
{{ defaultLabel }}
</option>
<option
v-for="option in filter.possibleValues"
Expand Down Expand Up @@ -53,6 +53,9 @@ export default {
computed: {
name() {
return this.filterName || this.filterKey;
},
defaultLabel(){
return this.filter.defaultLabel ?? 'None';
}
},
data() {
Expand Down

0 comments on commit d8920ad

Please sign in to comment.