From 9a2cfb59e794095c20ff1413323a3dbb4fe4f455 Mon Sep 17 00:00:00 2001 From: Carlos Valente Date: Mon, 18 Nov 2024 13:00:29 +0100 Subject: [PATCH] fix: issue with colour string sanitation --- .../common/components/view-params-editor/ViewParamsEditor.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/client/src/common/components/view-params-editor/ViewParamsEditor.tsx b/apps/client/src/common/components/view-params-editor/ViewParamsEditor.tsx index 1a55e531e..25c04b998 100644 --- a/apps/client/src/common/components/view-params-editor/ViewParamsEditor.tsx +++ b/apps/client/src/common/components/view-params-editor/ViewParamsEditor.tsx @@ -55,7 +55,7 @@ const getURLSearchParamsFromObj = (paramsObj: ViewParamsObj, paramFields: ViewOp // unfortunately this means we run all the strings through the sanitation const valueWithoutHash = sanitiseColour(value); if (defaultValues[id] !== valueWithoutHash) { - handleValueString(id, value); + handleValueString(id, valueWithoutHash); } } });