From 8e073745fc389ce4e66f6c341119ddd3f5e3a0d3 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Wed, 9 Oct 2024 14:51:28 +0530 Subject: [PATCH] fix: encode id to handle special chars Signed-off-by: Pranav C --- packages/nc-gui/composables/useCalendarViewStore.ts | 2 +- packages/nc-gui/composables/useKanbanViewStore.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/nc-gui/composables/useCalendarViewStore.ts b/packages/nc-gui/composables/useCalendarViewStore.ts index 0477f185e7..cd315c7df3 100644 --- a/packages/nc-gui/composables/useCalendarViewStore.ts +++ b/packages/nc-gui/composables/useCalendarViewStore.ts @@ -745,7 +745,7 @@ const [useProvideCalendarViewStore, useCalendarViewStore] = useInjectionState( base?.value.id as string, meta.value?.id as string, viewMeta?.value?.id as string, - id, + encodeURIComponent(id), updateObj, // todo: // { diff --git a/packages/nc-gui/composables/useKanbanViewStore.ts b/packages/nc-gui/composables/useKanbanViewStore.ts index 25f7e2c976..b0262cb4eb 100644 --- a/packages/nc-gui/composables/useKanbanViewStore.ts +++ b/packages/nc-gui/composables/useKanbanViewStore.ts @@ -396,7 +396,7 @@ const [useProvideKanbanViewStore, useKanbanViewStore] = useInjectionState( base?.value.id as string, meta.value?.id as string, viewMeta?.value?.id as string, - id, + encodeURIComponent(id), { [property]: toUpdate.row[property], },