From e16d76f6dd87d340e19302efa845d846a8d62f3b Mon Sep 17 00:00:00 2001 From: Rahul Agrawal Date: Wed, 28 May 2025 15:44:54 +0530 Subject: [PATCH 1/2] fix: remove escapeHtml from edit profile bio on save --- frontend/src/components/Modals/EditProfile.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/Modals/EditProfile.vue b/frontend/src/components/Modals/EditProfile.vue index 5cb27dea..4926b815 100644 --- a/frontend/src/components/Modals/EditProfile.vue +++ b/frontend/src/components/Modals/EditProfile.vue @@ -97,7 +97,7 @@ import { } from 'frappe-ui' import { reactive, watch } from 'vue' import { FileText, X } from 'lucide-vue-next' -import { getFileSize, escapeHTML } from '@/utils' +import { getFileSize } from '@/utils' const reloadProfile = defineModel('reloadProfile') @@ -132,7 +132,7 @@ const imageResource = createResource({ const updateProfile = createResource({ url: 'frappe.client.set_value', makeParams(values) { - profile.bio = escapeHTML(profile.bio) + profile.bio = profile.bio return { doctype: 'User', name: props.profile.data.name, From 376e231d7bf01c11023215dcd0f7bba79b381226 Mon Sep 17 00:00:00 2001 From: Rahul Agrawal Date: Wed, 28 May 2025 16:00:14 +0530 Subject: [PATCH 2/2] chore: remove unwanted line profile.bio = profile.bio --- frontend/src/components/Modals/EditProfile.vue | 1 - 1 file changed, 1 deletion(-) diff --git a/frontend/src/components/Modals/EditProfile.vue b/frontend/src/components/Modals/EditProfile.vue index 4926b815..d335b39f 100644 --- a/frontend/src/components/Modals/EditProfile.vue +++ b/frontend/src/components/Modals/EditProfile.vue @@ -132,7 +132,6 @@ const imageResource = createResource({ const updateProfile = createResource({ url: 'frappe.client.set_value', makeParams(values) { - profile.bio = profile.bio return { doctype: 'User', name: props.profile.data.name,