Skip to content

Commit

Permalink
fix(frontend): 全局搜索兼容name为null数据 #8088
Browse files Browse the repository at this point in the history
# Reviewed, transaction id: 24710
  • Loading branch information
JustaCattt committed Nov 25, 2024
1 parent 8c99a0c commit 43eb0f1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
const handleRedirect = useRedirect();
const getMatchText = (data: Props['data'][number]) => {
if (data.name.indexOf(props.keyWord) > -1) {
if (data.name?.indexOf(props.keyWord) > -1) {
return data.name;
}
return `${data.ip}:${data.port}`;
Expand Down

0 comments on commit 43eb0f1

Please sign in to comment.