Skip to content

Commit

Permalink
fix table column selector to only pick columns for area type
Browse files Browse the repository at this point in the history
Otherwise you get duplicate columns if a dataset has multuple datatypes
for multiple are types
  • Loading branch information
struan committed Apr 22, 2024
1 parent ec55f2b commit b87fb7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hub/templates/hub/explore.html
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ <h3 class="h6 mb-0 me-auto">${ column.title }</h3>
</div>
<div :class="{ 'filter__body': true, 'filter__body--expanded': true }">
<select v-if="column.is_range" v-model="column.selectedType" class="form-select form-select-sm flex-grow-0 flex-shrink-1">
<option v-for="ds_type in column.types" :value="ds_type.name">${ ds_type.title }</option>
<option v-for="ds_type in getDataTypesForCurrentArea(column)" :value="ds_type.name">${ ds_type.title }</option>
</select>
</div>
</div>
Expand Down

0 comments on commit b87fb7c

Please sign in to comment.