From c0266c007f384659ef556fd5b4b21a9fdd3ecaba Mon Sep 17 00:00:00 2001 From: Pranav C Date: Thu, 29 Dec 2022 13:03:18 +0530 Subject: [PATCH] fix(gui): encode id to escape special chars in url re #4704 Signed-off-by: Pranav C --- packages/nc-gui/composables/useViewData.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/nc-gui/composables/useViewData.ts b/packages/nc-gui/composables/useViewData.ts index 643d23100a..b572c9aea2 100644 --- a/packages/nc-gui/composables/useViewData.ts +++ b/packages/nc-gui/composables/useViewData.ts @@ -264,7 +264,7 @@ export function useViewData( project?.value.id as string, metaValue?.id as string, viewMetaValue?.id as string, - id, + encodeURIComponent(id), { // if value is undefined treat it as null [property]: toUpdate.row[property] ?? null, @@ -275,7 +275,7 @@ export function useViewData( // } ) // audit - $api.utils.auditRowUpdate(id, { + $api.utils.auditRowUpdate(encodeURIComponent(id), { fk_model_id: metaValue?.id as string, column_name: property, row_id: id,