Skip to content

Commit 9f63fd2

Browse files
shiqiWang0JackWang032
authored andcommitted
fix: problem panel show error when init,#197
1 parent ef54939 commit 9f63fd2

File tree

1 file changed

+1
-1
lines changed
  • website/src/workbench/problems/clients/paneView

1 file changed

+1
-1
lines changed

website/src/workbench/problems/clients/paneView/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const treeLeafSubInfoClassName = getBEMElement(treeLeafClassName, 'subInfo');
1616

1717
function ProblemsPaneView({ problemsService }: { problemsService: any }) {
1818
const localize = useLocale();
19-
const [data, setData] = useState(() => problemsService.get());
19+
const [data, setData] = useState(() => problemsService.get()?.filter(Boolean));
2020

2121
useEffect(() => {
2222
const unsubscribe = problemsService.subscribeData(setData);

0 commit comments

Comments
 (0)