Browse Source

ref(issues): Add object type to KeyValue data item (#66391)

Scott Cooper 1 year ago
parent
commit
412ef35120

+ 1 - 1
static/app/components/events/interfaces/performance/spanEvidenceKeyValueList.tsx

@@ -475,7 +475,7 @@ const makeTransactionNameRow = (event: Event, orgSlug: string, projectSlug?: str
 
 const makeRow = (
   subject: KeyValueListDataItem['subject'],
-  value: KeyValueListDataItem['value'] | KeyValueListDataItem['value'][],
+  value: KeyValueListDataItem['value'],
   actionButton?: ReactNode
 ): KeyValueListDataItem => {
   const itemKey = kebabCase(subject);

+ 1 - 1
static/app/types/group.tsx

@@ -912,7 +912,7 @@ export type KeyValueListDataItem = {
   meta?: Meta;
   subjectDataTestId?: string;
   subjectIcon?: React.ReactNode;
-  value?: React.ReactNode;
+  value?: React.ReactNode | Record<string, string | number>;
 };
 
 export type KeyValueListData = KeyValueListDataItem[];