Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
svenaas committed Mar 12, 2024
1 parent 4f4625c commit 962526d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions frontend/components/site/siteBuildLogs.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ function buildTooOld(build) {

function getSiteBuildLogTable(buildDetails, logs, state) {
if (logs && logs?.length > 0) {
return <SiteBuildLogTable buildLogs={logs} buildState={state} />
} else if (buildTooOld(buildDetails)) {
return <SiteBuildLogTable buildLogs={['Builds more than 180 days old are deleted according to platform policy.']} />
} else {
return <SiteBuildLogTable buildLogs={['This build does not have any build logs.']} />
return <SiteBuildLogTable buildLogs={logs} buildState={state} />;
}
if (buildTooOld(buildDetails)) {
return <SiteBuildLogTable buildLogs={['Builds more than 180 days old are deleted according to platform policy.']} />;
}
return <SiteBuildLogTable buildLogs={['This build does not have any build logs.']} />;
}

const SiteBuildLogs = () => {
Expand All @@ -32,7 +32,7 @@ const SiteBuildLogs = () => {
const { logs, state } = useBuildLogs(buildId);
const { buildDetails, isLoading } = useBuildDetails(buildId);

if (isLoading || !logs ) {
if (isLoading || !logs) {
return <LoadingIndicator size="mini" text="Getting build log details..." />;
}

Expand Down

0 comments on commit 962526d

Please sign in to comment.