[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>(); const { dashboardId } = useParams<Params>();
useEffect(() => { useEffect(() => {
if (dashboards.length !== 1) { getDashboard({
getDashboard({ uuid: dashboardId,
uuid: dashboardId, });
}); }, [getDashboard, dashboardId]);
}
}, [getDashboard, dashboardId, dashboards.length]);
if ( if (
error && error &&