mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-08-04 13:05:21 +02:00
fix: send the correct value for recipe scale and ensure the body is sent correctly (#5737)
This commit is contained in:
parent
5c7a4fb861
commit
99523c70ed
5 changed files with 8 additions and 9 deletions
|
@ -1,6 +1,5 @@
|
|||
import { useStoreActions } from "./partials/use-actions-factory";
|
||||
import { useUserApi } from "~/composables/api";
|
||||
import { useScaledAmount } from "~/composables/recipes/use-scaled-amount";
|
||||
import type { GroupRecipeActionOut, GroupRecipeActionType } from "~/lib/api/types/household";
|
||||
import type { RequestResponse } from "~/lib/api/types/non-generated";
|
||||
import type { Recipe } from "~/lib/api/types/recipe";
|
||||
|
@ -68,7 +67,7 @@ export const useGroupRecipeActions = function (
|
|||
window.open(url, "_blank")?.focus();
|
||||
return;
|
||||
case "post":
|
||||
return await api.groupRecipeActions.triggerAction(action.id, recipe.slug || "", useScaledAmount(recipe.recipeServings || 1, recipeScale).scaledAmount);
|
||||
return await api.groupRecipeActions.triggerAction(action.id, recipe.slug || "", recipeScale);
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue