Add domain names to certificates table

This commit is contained in:
Jamie Curnow
2024-09-15 22:33:11 +10:00
parent d121de808c
commit d2048e540d
4 changed files with 19 additions and 4 deletions

View File

@@ -2,7 +2,6 @@ import { useEffect, ReactNode } from "react";
import { Box, Container, useToast } from "@chakra-ui/react";
import { useQueryClient } from "@tanstack/react-query";
import { getSSEToken, SSEMessage } from "src/api/npm";
import { Footer, Navigation } from "src/components";
import { intl } from "src/locale";
@@ -26,6 +25,7 @@ function SiteWrapper({ children }: Props) {
eventSource.onmessage = (e: any) => {
const j: SSEMessage = JSON.parse(e.data);
if (j) {
console.log("SSE Message:", j);
if (j.affects) {
queryClient.invalidateQueries({ queryKey: [j.affects] });
}