mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-07 15:18:20 -05:00
add to shopping from meal plan editor
This commit is contained in:
@@ -278,7 +278,7 @@ export const useShoppingStore = defineStore(_STORE_ID, () => {
|
||||
/**
|
||||
* returns a distinct list of recipes associated with unchecked shopping list entries
|
||||
*/
|
||||
function getAssociatedRecipes() {
|
||||
function getAssociatedRecipes(): ShoppingListRecipe[] {
|
||||
let recipes = [] as ShoppingListRecipe[]
|
||||
|
||||
entries.value.forEach(e => {
|
||||
|
||||
@@ -69,7 +69,7 @@ export const useUserPreferenceStore = defineStore('user_preference_store', () =>
|
||||
function updateUserSettings() {
|
||||
let api = new ApiApi()
|
||||
|
||||
api.apiUserPreferencePartialUpdate({user: userSettings.value.user, patchedUserPreference: userSettings.value}).then(r => {
|
||||
api.apiUserPreferencePartialUpdate({user: userSettings.value.user.id!, patchedUserPreference: userSettings.value}).then(r => {
|
||||
userSettings.value = r
|
||||
useMessageStore().addPreparedMessage(PreparedMessage.UPDATE_SUCCESS)
|
||||
}).catch(err => {
|
||||
|
||||
Reference in New Issue
Block a user