1
0
Fork 0
mirror of https://github.com/mealie-recipes/mealie.git synced 2025-07-24 15:49:42 +02:00

fix: ignore-place-in-search (#1544)

* pin i18n since it breaks things

* set ignoreLocation to true

* revert composition api demotion

* bump slugify
This commit is contained in:
Hayden 2022-08-09 20:34:08 -08:00 committed by GitHub
parent f45e2587a0
commit ef24705cfa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 24 additions and 146 deletions

View file

@ -5,6 +5,7 @@ import { Recipe } from "~/types/api-types/recipe";
export const useRecipeSearch = (recipes: Ref<Recipe[] | null>) => {
const localState = reactive({
options: {
ignoreLocation: true,
shouldSort: true,
threshold: 0.6,
location: 0,