diff --git a/eventmesh-dashboard/components/client/GrpcClientTable.tsx b/eventmesh-dashboard/components/client/GrpcClientTable.tsx index 02cdca2bea..1ffdfeaa6f 100644 --- a/eventmesh-dashboard/components/client/GrpcClientTable.tsx +++ b/eventmesh-dashboard/components/client/GrpcClientTable.tsx @@ -138,7 +138,7 @@ const GrpcClientTable = () => { if (axios.isAxiosError(error)) { toast({ title: 'Failed to fetch the list of gRPC Clients', - description: 'unable to connect to the EventMesh daemon', + description: 'Unable to connect to the EventMesh daemon', status: 'error', duration: 3000, isClosable: true, @@ -149,7 +149,7 @@ const GrpcClientTable = () => { }; fetch(); - }, [GrpcClientList]); + }, []); return ( { if (axios.isAxiosError(error)) { toast({ title: 'Failed to fetch the list of HTTP Clients', - description: 'unable to connect to the EventMesh daemon', + description: 'Unable to connect to the EventMesh daemon', status: 'error', duration: 3000, isClosable: true, @@ -149,7 +149,7 @@ const HTTPClientTable = () => { }; fetch(); - }, [HTTPClientList]); + }, []); return ( { if (axios.isAxiosError(error)) { toast({ title: 'Failed to fetch the list of TCP Clients', - description: 'unable to connect to the EventMesh daemon', + description: 'Unable to connect to the EventMesh daemon', status: 'error', duration: 3000, isClosable: true, @@ -152,7 +152,7 @@ const TCPClientTable = () => { }; fetch(); - }, [TCPClientList]); + }, []); return ( { + diff --git a/eventmesh-dashboard/components/event/EventTable.tsx b/eventmesh-dashboard/components/event/EventTable.tsx index 012630564e..b0d0a13df9 100644 --- a/eventmesh-dashboard/components/event/EventTable.tsx +++ b/eventmesh-dashboard/components/event/EventTable.tsx @@ -302,7 +302,7 @@ const EventTable = () => { if (axios.isAxiosError(error)) { toast({ title: 'Failed to fetch the list of events', - description: 'unable to connect to the EventMesh daemon', + description: 'Unable to connect to the EventMesh daemon', status: 'error', duration: 3000, isClosable: true, diff --git a/eventmesh-dashboard/components/topic/TopicTable.tsx b/eventmesh-dashboard/components/topic/TopicTable.tsx index 9a33114f48..f3a13692f6 100644 --- a/eventmesh-dashboard/components/topic/TopicTable.tsx +++ b/eventmesh-dashboard/components/topic/TopicTable.tsx @@ -205,7 +205,7 @@ const TopicTable = () => { if (axios.isAxiosError(error)) { toast({ title: 'Failed to fetch the list of topics', - description: 'unable to connect to the EventMesh daemon', + description: 'Unable to connect to the EventMesh daemon', status: 'error', duration: 3000, isClosable: true, @@ -216,7 +216,7 @@ const TopicTable = () => { }; fetch(); - }, [topicList]); + }, []); return (
Host Host Group Action