Skip to content

Commit 9c2ea72

Browse files
committed
Removed important flag and some build warnings
Signed-off-by: James Cocker <james.s.earth@gmail.com>
1 parent e142fa7 commit 9c2ea72

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

galasa-ui/src/components/test-runs/test-run-details/LogTab.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ export default function LogTab({ logs, initialLine, runId }: LogTabProps) {
536536
lineElement.scrollIntoView({ behavior: ANIMATION_BEHAVIOUR, block: 'start' });
537537
}
538538
}
539-
}, [initialLine, processedLines]);
539+
}, [ANIMATION_BEHAVIOUR, initialLine, processedLines]);
540540

541541
// Scroll to current match
542542
useEffect(() => {
@@ -549,7 +549,7 @@ export default function LogTab({ logs, initialLine, runId }: LogTabProps) {
549549
});
550550
}
551551
}
552-
}, [currentMatchIndex]);
552+
}, [ANIMATION_BEHAVIOUR, currentMatchIndex]);
553553

554554
useEffect(() => {
555555
const matchCount = searchMatches.length;

galasa-ui/src/components/test-runs/test-run-details/TestRunDetails.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,8 @@ const TestRunDetails = ({
110110
if (is3270TabSelectedInURL && zos3270TerminalFolderExists && !is3270TabLoading) {
111111
setSelectedTabIndex(indexOf3270Tab);
112112
}
113+
// Ignore missing dependecies as they will be finalised by the time is3270TabLoading switches to false
114+
// eslint-disable-next-line react-hooks/exhaustive-deps
113115
}, [is3270TabLoading]);
114116

115117
const handleSetZos3270TerminalData = (newZos3270TerminalData: TreeNodeData[]) => {

galasa-ui/src/styles/test-runs/test-run-details/Tab3270.module.css

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@
1313
}
1414

1515
#innerScreenshotTable {
16-
/* Override Carbon's max-height for the Table component */
17-
max-height: min(calc(100vh - 450px), 550px) !important;
16+
max-height: min(calc(100vh - 450px), 550px);
1817
overflow-y: auto;
1918
/* Stops sticky header overlapping table elements when scrollToTop() is called. */
2019
scroll-padding-top: 48px;

0 commit comments

Comments
 (0)