Skip to content

Commit

Permalink
fix selection of default metric
Browse files Browse the repository at this point in the history
  • Loading branch information
shahzad31 committed May 28, 2021
1 parent c0f7575 commit 1028588
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export function CustomReportField({ field, seriesId, options: opts }: Props) {
value: fd || id,
inputDisplay: label,
}))}
valueOfSelected={reportDefinitions?.[field]?.[0] || options?.[0].field}
valueOfSelected={reportDefinitions?.[field]?.[0] || options?.[0].field || options?.[0].id}
onChange={(value) => onChange(value)}
/>
);
Expand Down

0 comments on commit 1028588

Please sign in to comment.