правка предупреждений

This commit is contained in:
Kayashov.SM
2025-04-26 01:24:48 +04:00
parent 4caab82634
commit 44ec01685a
3 changed files with 10 additions and 65 deletions

View File

@@ -26,6 +26,7 @@ export function IngredientInfoModal({ingredient}) {
api().get(requests.cocktails.byIngredient + ingredient.id)
.then((r) => setCocktails(r.data))
.catch(() => createError())
// eslint-disable-next-line
}, [ingredient]);
if (!ingredient) {