mirror of
https://github.com/moghtech/komodo.git
synced 2026-09-07 16:01:24 +00:00
alert details use GetAlert
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user