Skip to content

Commit f58a966

Browse files
authored
feat: hide mini-history on new page (#3531)
1 parent c31a6d0 commit f58a966

File tree

2 files changed

+14
-9
lines changed

2 files changed

+14
-9
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ and this project adheres to
2626
### Changed
2727

2828
### Fixed
29+
- Hide Mini-History on new template page
30+
[#3531](https://github.com/OpenFn/lightning/pull/3531)
2931

3032
## [v2.14.2] - 2025-08-15
3133

assets/js/workflow-diagram/WorkflowDiagram.tsx

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -590,15 +590,18 @@ export default function WorkflowDiagram(props: WorkflowDiagramProps) {
590590
liveAction={props.liveAction}
591591
drawerWidth={drawerWidth}
592592
/>
593-
<MiniHistory
594-
collapsed={!runSteps.start_from}
595-
history={someHistory}
596-
selectRunHandler={onRunChange}
597-
onCollapseHistory={onCollapseHistory}
598-
drawerWidth={drawerWidth}
599-
hasSnapshotMismatch={hasSnapshotMismatch}
600-
missingNodeCount={missingNodeCount}
601-
/>
593+
{
594+
props.liveAction === 'edit' ?
595+
<MiniHistory
596+
collapsed={!runSteps.start_from}
597+
history={someHistory}
598+
selectRunHandler={onRunChange}
599+
onCollapseHistory={onCollapseHistory}
600+
drawerWidth={drawerWidth}
601+
hasSnapshotMismatch={hasSnapshotMismatch}
602+
missingNodeCount={missingNodeCount}
603+
/> : null
604+
}
602605
</ReactFlowProvider>
603606
);
604607
}

0 commit comments

Comments
 (0)