📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!
TypeScript chartsclickhousedockergdprgoogle-analyticsmetricsmonitoringmysqlnestjsprivacyredisself-hostedselfhostedstatisticstailwindcssweb-analyticswebanalyticswebsite
fix alert interface
Blue Mouse8b5146c9c983
diff --git a/web/app/lib/models/Alerts.ts b/web/app/lib/models/Alerts.tsindex 90ecaea17..7a81c2e5b 100644--- a/web/app/lib/models/Alerts.ts+++ b/web/app/lib/models/Alerts.ts@@ -3,7 +3,6 @@ import { QUERY_METRIC, QUERY_CONDITION, QUERY_TIME } from '../constants'export interface Alerts {id: stringpid: string- uid?: stringname: stringqueryMetric: (typeof QUERY_METRIC)[keyof typeof QUERY_METRIC]queryCondition: (typeof QUERY_CONDITION)[keyof typeof QUERY_CONDITION] | null@@ -11,6 +10,6 @@ export interface Alerts {queryTime: (typeof QUERY_TIME)[keyof typeof QUERY_TIME] | nullqueryCustomEvent?: stringactive: boolean- lastTriggered?: Date+ lastTriggered: string | nullalertOnNewErrorsOnly?: boolean}diff --git a/web/app/pages/Project/Alerts/View/ProjectAlertsView.tsx b/web/app/pages/Project/Alerts/View/ProjectAlertsView.tsxindex 0cfff23be..247a51bff 100644--- a/web/app/pages/Project/Alerts/View/ProjectAlertsView.tsx+++ b/web/app/pages/Project/Alerts/View/ProjectAlertsView.tsx@@ -344,7 +344,6 @@ const ProjectAlerts = () => {{!isIntegrationLinked ? <NoNotificationChannelSet /> : null}<ul className='mt-4 grid grid-cols-1 gap-x-6 gap-y-3 lg:grid-cols-3 lg:gap-y-6'>{_map(alerts, (alert) => (- // @ts-expect-error I promise to fix it later :)<AlertCardkey={alert.id}{...alert}