mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-14 04:45:57 +08:00
[Fix]: show dashboard according to Id (#3564)
* fix: show dashboard according to id * chore: removed log
This commit is contained in:
parent
e3f17b5420
commit
231c2fd281
@ -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 &&
|
||||
|
Loading…
x
Reference in New Issue
Block a user