fix(ui): dashboard null check
This commit is contained in:
parent
725095f205
commit
041e3c6180
1 changed files with 1 additions and 1 deletions
|
|
@ -16,7 +16,7 @@ function AddToDashboardButton({metricId}: Props) {
|
|||
label: i.name,
|
||||
value: i.dashboardId,
|
||||
}));
|
||||
const [selectedId, setSelectedId] = React.useState(dashboardOptions[0].value);
|
||||
const [selectedId, setSelectedId] = React.useState(dashboardOptions[0]?.value);
|
||||
|
||||
const onSave = (close: any) => {
|
||||
const dashboard = dashboardStore.getDashboard(selectedId)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue