Skip to content

Commit

Permalink
fix(frontend): 全局搜索兼容name为null数据 TencentBlueKing#8088
Browse files Browse the repository at this point in the history
# Reviewed, transaction id: 24710
  • Loading branch information
JustaCattt authored and iSecloud committed Nov 26, 2024
1 parent fa397ec commit ffd89da
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 ffd89da

Please sign in to comment.