Fixed dashboard not refreshing properly
This commit is contained in:
parent
ca35673298
commit
328064583d
|
|
@ -88,7 +88,7 @@ export const DashboardContextProvider = ({
|
|||
if (dashboards.data && !dashboards.isFetching && !isDashboardSelected) {
|
||||
setDashboardId(dashboards.data[0]?.id)
|
||||
}
|
||||
}, [dashboards.data, isDashboardSelected])
|
||||
}, [dashboards.data, isDashboardSelected, dashboards.isFetching])
|
||||
|
||||
const [filter, setFilter] = useState<FilterValue>(() => {
|
||||
const range = intervalToRange('week', new Date(), new Date())
|
||||
|
|
|
|||
Loading…
Reference in New Issue