gitscope
← marzneshin / Diff · e305b31 → e305b31
Changes e305b31..e305b31
Patch commit
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<FilterProps> = ({ ...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<FilterProps> = ({ ...props }) => {
}
}, [copied]);
+ useEffect(() => {
+ certificate === '' && refetchCertificate();
+ }, [certificate])
+
return (
<Grid
id="nodes-filters"