We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 580d557 commit f5ed7bdCopy full SHA for f5ed7bd
packages/common/src/utils/api.ts
@@ -61,9 +61,8 @@ export const findSiteMapUsingRoute = (
61
export const parseCss = (t: unknown): React.CSSProperties => {
62
try {
63
if (R.isString(t) && !R.isEmpty(t)) return JSON.parse(t);
64
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
65
- } catch (_) {
66
- // Ignore parsing errors
+ } catch (e) {
+ console.warn("Failed to parse CSS string:", t, e);
67
}
68
return {} as React.CSSProperties;
69
};
0 commit comments