[Fix]: show dashboard according to Id (#3564)

* fix: show dashboard according to id

* chore: removed log
This commit is contained in:
Rajat Dabade 2023-09-15 12:56:59 +05:30 committed by GitHub
parent e3f17b5420
commit 231c2fd281
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,12 +22,10 @@ function NewDashboardPage({ getDashboard }: NewDashboardProps): JSX.Element {
const { dashboardId } = useParams<Params>();
useEffect(() => {
if (dashboards.length !== 1) {
getDashboard({
uuid: dashboardId,
});
}
}, [getDashboard, dashboardId, dashboards.length]);
getDashboard({
uuid: dashboardId,
});
}, [getDashboard, dashboardId]);
if (
error &&