From 98619a9082d948854c913295eb95eccde46eaf92 Mon Sep 17 00:00:00 2001 From: florianfederspiel Date: Sat, 28 Dec 2024 14:41:50 +0100 Subject: [PATCH] Fixed Profile Edit --- pages/profiles/show/[id].vue | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/pages/profiles/show/[id].vue b/pages/profiles/show/[id].vue index 298eec8..46f1758 100644 --- a/pages/profiles/show/[id].vue +++ b/pages/profiles/show/[id].vue @@ -97,6 +97,15 @@ const isLight = computed({ colorMode.preference = colorMode.value === 'dark' ? 'light' : 'dark' } }) + +const saveProfile = async () => { + let data = {...itemInfo.value, fullName: itemInfo.value.firstName + ' ' + itemInfo.value.lastName} + delete data.checks + delete data.documents + + await dataStore.updateItem('profiles',data,oldItemInfo.value) +} +