Skip to content

Commit

Permalink
Updated vue dropdown logic to remove v-if and improve code readability.
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Di Pasquale committed Dec 13, 2024
1 parent 9cf8bf0 commit 94031f6
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/globalFilters/FilterField.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,8 @@
name="setSelectionThreshold"
@change="updateFilterValueFromDropdown($event, filter.comparator, $event.target.value)"
>
<option value="NONE" v-if="filter.defaultLabel">
{{ filter.defaultLabel }}
</option>
<option v-else value="NONE">
None
<option value="NONE">
{{ filter.defaultLabel || "None" }}
</option>
<option
v-for="option in filter.possibleValues"
Expand Down

0 comments on commit 94031f6

Please sign in to comment.