mirror of
https://github.com/hay-kot/mealie.git
synced 2025-08-22 22:43:34 -07:00
fix more broken searches
This commit is contained in:
parent
5ec1000802
commit
7e6881acfa
3 changed files with 7 additions and 6 deletions
|
@ -2,7 +2,7 @@
|
|||
<v-autocomplete
|
||||
v-model="selected"
|
||||
v-bind="inputAttrs"
|
||||
v-model:search-input="searchInput"
|
||||
v-model:search="searchInput"
|
||||
:items="storeItem"
|
||||
:label="label"
|
||||
chips
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
ref="autocompleteRef"
|
||||
v-model="itemVal"
|
||||
v-bind="$attrs"
|
||||
v-model:search-input="searchInput"
|
||||
v-model:search="searchInput"
|
||||
item-title="name"
|
||||
return-object
|
||||
:items="items"
|
||||
|
@ -97,7 +97,8 @@ export default defineNuxtComponent({
|
|||
get: () => {
|
||||
try {
|
||||
return Object.keys(props.modelValue).length !== 0 ? props.modelValue : null;
|
||||
} catch {
|
||||
}
|
||||
catch {
|
||||
return null;
|
||||
}
|
||||
},
|
||||
|
|
|
@ -62,7 +62,7 @@
|
|||
<v-autocomplete
|
||||
v-if="!dialog.note"
|
||||
v-model="newMeal.recipeId"
|
||||
v-model:search-input="search.query.value"
|
||||
v-model:search="search.query.value"
|
||||
:label="$t('meal-plan.meal-recipe')"
|
||||
:items="search.data.value"
|
||||
:loading="search.loading.value"
|
||||
|
@ -272,12 +272,12 @@ export default defineNuxtComponent({
|
|||
}
|
||||
// Remove any dates that no longer exist
|
||||
Object.keys(mealplansByDate).forEach((date) => {
|
||||
if (!plans.find((p) => p.date.toString() === date)) {
|
||||
if (!plans.find(p => p.date.toString() === date)) {
|
||||
delete mealplansByDate[date];
|
||||
}
|
||||
});
|
||||
},
|
||||
{ immediate: true, deep: true }
|
||||
{ immediate: true, deep: true },
|
||||
);
|
||||
|
||||
function onMoveCallback(evt: SortableEvent) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue