From 023a2852c7c74eadbe0d335d75cb6c5552790589 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carl-Gerhard=20Lindesva=CC=88rd?= Date: Wed, 14 May 2025 09:36:28 +0200 Subject: [PATCH] fix(dashboard): event field value cant have key as prop --- apps/dashboard/src/components/events/event-field-value.tsx | 6 +++--- apps/dashboard/src/modals/event-details.tsx | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/apps/dashboard/src/components/events/event-field-value.tsx b/apps/dashboard/src/components/events/event-field-value.tsx index 7ee55d1e..4d584562 100644 --- a/apps/dashboard/src/components/events/event-field-value.tsx +++ b/apps/dashboard/src/components/events/event-field-value.tsx @@ -5,11 +5,11 @@ import { isToday } from 'date-fns'; import { SerieIcon } from '../report-chart/common/serie-icon'; export function EventFieldValue({ - key, + name, value, event, }: { - key: keyof IServiceEvent; + name: keyof IServiceEvent; value: any; event: IServiceEvent; }) { @@ -21,7 +21,7 @@ export function EventFieldValue({ return isToday(value) ? formatTime(value) : formatDateTime(value); } - switch (key) { + switch (name) { case 'osVersion': return (
diff --git a/apps/dashboard/src/modals/event-details.tsx b/apps/dashboard/src/modals/event-details.tsx index a508de6e..83d437ef 100644 --- a/apps/dashboard/src/modals/event-details.tsx +++ b/apps/dashboard/src/modals/event-details.tsx @@ -300,7 +300,7 @@ export default function EventDetails({ id, createdAt, projectId }: Props) { }} > @@ -363,7 +363,7 @@ export default function EventDetails({ id, createdAt, projectId }: Props) { }} > @@ -374,7 +374,7 @@ export default function EventDetails({ id, createdAt, projectId }: Props) { return (