alert details use GetAlert

This commit is contained in:
mbecker20
2024-04-15 03:56:54 -07:00
parent 0f2b23bb6c
commit 0bdb3ddfea
+1 -3
View File
@@ -9,9 +9,7 @@ import { fmt_date_with_minutes } from "@lib/formatting";
export const AlertDetailsDialog = ({ id }: { id: string }) => {
const [open, set] = useState(false);
const alert = useRead("ListAlerts", {}).data?.alerts.find(
(alert) => alert._id?.$oid === id
);
const alert = useRead("GetAlert", { id }).data;
return (
<Dialog open={open} onOpenChange={set}>
<DialogTrigger asChild>