Skip to content

Commit

Permalink
Improved: code for unnecessary optional check (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
amansinghbais committed Dec 8, 2023
1 parent 9ec7e58 commit 1f29766
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/views/CreateFacility.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<ion-label>{{ translate("Type") }}</ion-label>
<ion-select interface="popover" v-model="selectedFacilityTypeId">
<ion-select-option :value="facilityTypeId" :key="facilityTypeId" v-for="(type, facilityTypeId) in facilityTypesByParentTypeId">
{{ type?.description ? type.description : facilityTypeId }}
{{ type.description ? type.description : facilityTypeId }}
</ion-select-option>
</ion-select>
</ion-item>
Expand Down

0 comments on commit 1f29766

Please sign in to comment.