diff --git a/app/dashboard/src/pages/nodes/filters.tsx b/app/dashboard/src/pages/nodes/filters.tsx index 5686420..25865c9 100644 --- a/app/dashboard/src/pages/nodes/filters.tsx +++ b/app/dashboard/src/pages/nodes/filters.tsx @@ -63,8 +63,8 @@ export const NodesFilters: FC = ({ ...props }) => { name: '', }); }; - const { certificate } = useNodes(); + const { certificate, refetchCertificate } = useNodes(); const [copied, setCopied] = useState([-1, false]); useEffect(() => { if (copied[1]) { @@ -74,6 +74,10 @@ export const NodesFilters: FC = ({ ...props }) => { } }, [copied]); + useEffect(() => { + certificate === '' && refetchCertificate(); + }, [certificate]) + return (