Skip to content

Commit

Permalink
fix(ui): missing pre snapshot scripts show more button
Browse files Browse the repository at this point in the history
  • Loading branch information
emosbaugh committed Jan 24, 2025
1 parent 29c846c commit f4f9ef7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/src/components/snapshots/SnapshotDetails.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -924,7 +924,7 @@ class SnapshotDetails extends Component {
<p className="u-fontSize--larger u-textColor--primary u-fontWeight--bold u-lineHeight--bold u-paddingBottom--10 flex flex1">
Scripts
</p>
{this.preSnapshotScripts()?.length > 3 &&
{this.preSnapshotScripts(snapshotDetail)?.length > 3 &&
selectedScriptTab ===
"Pre-snapshot scripts" ? (
<div className="flex flex1 justifyContent--flexEnd">
Expand All @@ -935,7 +935,7 @@ class SnapshotDetails extends Component {
}
>
Show all{" "}
{this.preSnapshotScripts()?.length}{" "}
{this.preSnapshotScripts(snapshotDetail)?.length}{" "}
pre-scripts
</span>
</div>
Expand Down

0 comments on commit f4f9ef7

Please sign in to comment.