Skip to content

Commit

Permalink
fix: Fix view log button on test run (#1054)
Browse files Browse the repository at this point in the history
  • Loading branch information
gnarf committed Apr 11, 2024
1 parent 3a4d3c8 commit 8b46827
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions client/components/TestRun/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -1014,6 +1014,9 @@ const TestRun = () => {
];
}

const externalLogsUrl =
collectionJobQuery?.collectionJobByTestPlanRunId?.externalLogsUrl;

const menuRightOfContent = (
<div role="complementary">
<h2 id="test-options-heading">Test Options</h2>
Expand All @@ -1034,17 +1037,12 @@ const TestRun = () => {
href={issueLink}
/>
</li>
{isBot(openAsUser) &&
collectionJobQuery?.collectionJobByTestPlanRunId
?.externalLogsUrl ? (
{isBot(openAsUser) && externalLogsUrl ? (
<li>
<OptionButton
text="View Log"
target="_blank"
href={
collectionJobQuery?.collectionJob
?.externalLogsUrl
}
href={externalLogsUrl}
/>
</li>
) : (
Expand Down

0 comments on commit 8b46827

Please sign in to comment.