mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-03 05:11:31 -05:00
fixed error in account settings
This commit is contained in:
@@ -42,7 +42,7 @@ const user = ref({} as User)
|
|||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
let api = new ApiApi()
|
let api = new ApiApi()
|
||||||
|
|
||||||
api.apiUserRetrieve({id: useUserPreferenceStore().userSettings.user}).then(r => {
|
api.apiUserRetrieve({id: useUserPreferenceStore().userSettings.user.id}).then(r => {
|
||||||
user.value = r
|
user.value = r
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
useMessageStore().addError(ErrorMessageType.FETCH_ERROR, err)
|
useMessageStore().addError(ErrorMessageType.FETCH_ERROR, err)
|
||||||
|
|||||||
Reference in New Issue
Block a user