Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 7c7be04

Browse files
committedFeb 26, 2025·
Remove unnecessary blockNavigation check
Signed-off-by: Tyler Ohlsen <ohltyler@amazon.com>
1 parent 166e352 commit 7c7be04

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed
 

‎public/pages/workflow_detail/workflow_detail.tsx

+5-7
Original file line numberDiff line numberDiff line change
@@ -118,13 +118,11 @@ export function WorkflowDetail(props: WorkflowDetailProps) {
118118
// 2. Block navigation (externally-controlled buttons/links)
119119
// Remove listeners on component unload.
120120
const handleLinkClick = (e: Event) => {
121-
if (blockNavigation) {
122-
const confirmation = window.confirm(
123-
'You have unsaved changes. Are you sure you want to leave?'
124-
);
125-
if (!confirmation) {
126-
e.preventDefault();
127-
}
121+
const confirmation = window.confirm(
122+
'You have unsaved changes. Are you sure you want to leave?'
123+
);
124+
if (!confirmation) {
125+
e.preventDefault();
128126
}
129127
};
130128
useEffect(() => {

0 commit comments

Comments
 (0)
Please sign in to comment.