Skip to content
This repository has been archived by the owner on Jul 2, 2024. It is now read-only.

Commit

Permalink
use lineCount
Browse files Browse the repository at this point in the history
  • Loading branch information
SupaJoon committed Aug 24, 2023
1 parent 01fd582 commit 384faf0
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/components/LogWindow/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ const LogWindow: React.FC<LogWindowProps> = ({ isUploadedLog, logType }) => {
collapseLines,
expandedLines,
lineCount,
logsAreEmpty,
processedLogLines,
scrollToLine,
} = useLogContext();
Expand All @@ -38,19 +37,19 @@ const LogWindow: React.FC<LogWindowProps> = ({ isUploadedLog, logType }) => {
<ColumnContainer>
<SubHeader isUploadedLog={isUploadedLog} />
<LogPaneContainer>
{logsAreEmpty ? (
<BasicEmptyState
description="No logs were found for this resource"
title="No Logs Found"
/>
) : (
{lineCount ? (
<LogPane
rowCount={processedLogLines.length}
rowRenderer={ParsleyRow({
logType,
processedLogLines,
})}
/>
) : (
<BasicEmptyState
description="No logs were found for this resource"
title="No Logs Found"
/>
)}
</LogPaneContainer>
</ColumnContainer>
Expand Down

0 comments on commit 384faf0

Please sign in to comment.