diff --git a/src/components/util/SharedUtils.ts b/src/components/util/SharedUtils.ts index b64b8517..93f6e84e 100644 --- a/src/components/util/SharedUtils.ts +++ b/src/components/util/SharedUtils.ts @@ -19,7 +19,7 @@ export const getCookies = (cookie: Cookie, names: string[], urlParams: URLSearch : value === 'false' ? false : key == 'colors' ? value.split(',') : !isNaN(Number(value)) ? Number(value) - : (value.startsWith('{') && key !== 'format') ? JSON.parse(value) + : (value.startsWith('{') && key == 'parsed') ? JSON.parse(value) : value; } return parsedCookiesAndParams;