Skip to content

Commit 4e41daa

Browse files
committed
fix: system notice info empty error
1 parent 515e556 commit 4e41daa

File tree

1 file changed

+1
-1
lines changed
  • client/src/components/SystemNotification

1 file changed

+1
-1
lines changed

client/src/components/SystemNotification/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import style from './index.module.scss';
88
const SystemNotification: React.FC = () => {
99
const { setting } = useContext(GlobalContext);
1010
const notices = setting?.systemNoticeInfo?.split('\n').filter(Boolean);
11-
return !!notices.length ? (
11+
return !!notices?.length ? (
1212
<Alert
1313
className={style.alert}
1414
closeIcon

0 commit comments

Comments
 (0)