Skip to content

Commit 7d98750

Browse files
committed
TestVariation. Disable lint to testRun in case it's null
1 parent 677604e commit 7d98750

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/pages/TestVariationDetailsPage.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ const TestVariationDetailsPage: React.FunctionComponent = () => {
6161
<Button
6262
color="primary"
6363
component={Link}
64-
to={buildTestRunUrl(testVariation, baseline.testRun)}
64+
disabled={!baseline.testRun}
65+
to={baseline.testRun && buildTestRunUrl(testVariation, baseline.testRun)}
6566
>
6667
{baseline.createdAt}
6768
</Button>

0 commit comments

Comments
 (0)