Skip to content

Commit 16f339e

Browse files
fix: hash links (#670)
1 parent f80af80 commit 16f339e

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/app/runs/[id]/_Tabs/Overview/AlertPanels.tsx

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1+
import { InfoBox } from "@/components/Infobox";
12
import { usePipelineRun } from "@/data/pipeline-runs/pipeline-run-detail-query";
23
import { MetadataMap } from "@/types/common";
34
import { Button, Skeleton } from "@zenml-io/react-component-library/components/server";
4-
import { Link, useParams } from "react-router-dom";
5-
import { InfoBox } from "@/components/Infobox";
5+
import { useParams } from "react-router-dom";
66

77
function FailedPanel() {
88
return (
@@ -12,7 +12,9 @@ function FailedPanel() {
1212
Pipeline run failed. Check orchestrator logs for error details and troubleshooting steps.
1313
</p>
1414
<Button intent="danger" asChild>
15-
<Link to="#orchestrator-collapsible">Review</Link>
15+
{/* React-Router seems to have issues with Hashes. There's the alternative of using react-router-hash-link, but I refrain for installing a new package for this single use case for now
16+
*/}
17+
<a href="#orchestrator-collapsible">Review</a>
1618
</Button>
1719
</div>
1820
</InfoBox>
@@ -27,7 +29,9 @@ function InitializingPanel() {
2729
Pipeline run initializing. Check orchestrator URL and logs for real-time status updates.
2830
</p>
2931
<Button asChild>
30-
<Link to="#orchestrator-collapsible">Review</Link>
32+
{/* React-Router seems to have issues with Hashes. There's the alternative of using react-router-hash-link, but I refrain for installing a new package for this single use case for now
33+
*/}
34+
<a href="#orchestrator-collapsible">Review</a>
3135
</Button>
3236
</div>
3337
</InfoBox>

0 commit comments

Comments
 (0)