Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Translation request for 2769 #345

Open
machr opened this issue Dec 9, 2024 · 0 comments
Open

Translation request for 2769 #345

machr opened this issue Dec 9, 2024 · 0 comments

Comments

@machr
Copy link

machr commented Dec 9, 2024

Error Text

No overload matches this call.

Supporting Information

Please provide other information which led to this error, and any specific questions you have about it:

This is the line I'm having issues with

menuCategoriesWithItems.value = Array.from(res.data).filter(({ menu_items }: MenuItem) => menu_items.length > 0).map

this is the interface for MenuItem

export interface MenuItem {
    id: number;
    menu_id: number;
    menu_itemable_id: number;
    menu_itemable_type: string;
    created_at: string | null;
    updated_at: string | null;
    pre_cooked: number;
    limited_stock: number;
    small_qty: number;
    medium_qty: number;
    large_qty: number;
    hamper_qty: number;
    pack_qty: number | null;
    hide_item: number;
    category_index: number;
    customer_order_limit: number | null;
    menu_category_id: number;
    menu_sale_id: number | null;
    menu_itemable: Meal | MealPack;
    sale: unknown | null; // Replace with specific type if known
    badges: unknown[]; // Replace with specific type if known
  }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant