mirror of
https://github.com/hay-kot/mealie.git
synced 2025-08-21 22:13:31 -07:00
lint
This commit is contained in:
parent
f5b8a592d3
commit
7e5924d692
2 changed files with 4 additions and 3 deletions
|
@ -3,7 +3,7 @@ import type { ShoppingListOut, ShoppingListItemOut } from "~/lib/api/types/house
|
||||||
/**
|
/**
|
||||||
* Composable for managing shopping list state and reactive data
|
* Composable for managing shopping list state and reactive data
|
||||||
*/
|
*/
|
||||||
export function useShoppingListState(listId: string) {
|
export function useShoppingListState() {
|
||||||
const shoppingList = ref<ShoppingListOut | null>(null);
|
const shoppingList = ref<ShoppingListOut | null>(null);
|
||||||
const loadingCounter = ref(1);
|
const loadingCounter = ref(1);
|
||||||
const recipeReferenceLoading = ref(false);
|
const recipeReferenceLoading = ref(false);
|
||||||
|
|
|
@ -12,7 +12,7 @@ import { useShoppingListRecipes } from "~/composables/shopping-list-page/sub-com
|
||||||
*/
|
*/
|
||||||
export function useShoppingListPage(listId: string) {
|
export function useShoppingListPage(listId: string) {
|
||||||
// Initialize state
|
// Initialize state
|
||||||
const state = useShoppingListState(listId);
|
const state = useShoppingListState();
|
||||||
const {
|
const {
|
||||||
shoppingList,
|
shoppingList,
|
||||||
loadingCounter,
|
loadingCounter,
|
||||||
|
@ -35,7 +35,8 @@ export function useShoppingListPage(listId: string) {
|
||||||
|
|
||||||
if (!preserveItemOrder.value) {
|
if (!preserveItemOrder.value) {
|
||||||
groupAndSortListItemsByFood(shoppingList.value);
|
groupAndSortListItemsByFood(shoppingList.value);
|
||||||
} else {
|
}
|
||||||
|
else {
|
||||||
sortListItems(shoppingList.value);
|
sortListItems(shoppingList.value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue