mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-07-25 08:09:41 +02:00
fix "no data" error on create meal plan modal (#2263)
This commit is contained in:
parent
905b2ad8a9
commit
82ce4b5e7a
2 changed files with 12 additions and 4 deletions
|
@ -206,7 +206,7 @@
|
|||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { defineComponent, computed, reactive, ref, watch } from "@nuxtjs/composition-api";
|
||||
import { defineComponent, computed, reactive, ref, watch, onMounted } from "@nuxtjs/composition-api";
|
||||
import { format } from "date-fns";
|
||||
import { SortableEvent } from "sortablejs";
|
||||
import draggable from "vuedraggable";
|
||||
|
@ -332,8 +332,11 @@ export default defineComponent({
|
|||
// Search
|
||||
|
||||
const search = useRecipeSearch(api);
|
||||
|
||||
const planTypeOptions = usePlanTypeOptions();
|
||||
|
||||
onMounted(async () => {
|
||||
await search.trigger();
|
||||
});
|
||||
|
||||
return {
|
||||
state,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue