mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-14 23:05:53 +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>();
|
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 &&
|
||||||
|
Loading…
x
Reference in New Issue
Block a user