Skip to content

Commit f5ed7bd

Browse files
committed
chore: CSS JSON 파싱 실패 시 로깅
1 parent 580d557 commit f5ed7bd

File tree

1 file changed

+2
-3
lines changed
  • packages/common/src/utils

1 file changed

+2
-3
lines changed

packages/common/src/utils/api.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,8 @@ export const findSiteMapUsingRoute = (
6161
export const parseCss = (t: unknown): React.CSSProperties => {
6262
try {
6363
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
64+
} catch (e) {
65+
console.warn("Failed to parse CSS string:", t, e);
6766
}
6867
return {} as React.CSSProperties;
6968
};

0 commit comments

Comments
 (0)