Skip to content

Commit

Permalink
fix: set ModInputField middlename type and fix handleListItem to spli…
Browse files Browse the repository at this point in the history
…ce at index of item in selectedItems instead of selectedItemIndex
  • Loading branch information
prestonb91 committed Feb 18, 2025
1 parent 6eb3374 commit 0d08121
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/ModEditHealthcareProfessionalSection.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
:required="true"
/>
<ModInputField
v-model="nameLocaleInputs.middleName"
v-model="nameLocaleInputs.middleName as string"
data-testid="mod-healthcare-professional-section-middleName"
:label="$t('modHealthcareProfessionalSection.labelHealthcareProfessionalMiddleName')"
type="text"
Expand Down
3 changes: 2 additions & 1 deletion components/ModSearchBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,8 @@ const handleListItem = () => {
const item = filteredItems.value[selectedItemIndex.value]
if (selectedItems.value.includes(item)) {
selectedItems.value.splice(selectedItemIndex.value, 1)
const itemIndex = selectedItems.value.indexOf(item);
selectedItems.value.splice(itemIndex, 1);
return
}
Expand Down

0 comments on commit 0d08121

Please sign in to comment.