We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 166e352 commit 7c7be04Copy full SHA for 7c7be04
public/pages/workflow_detail/workflow_detail.tsx
@@ -118,13 +118,11 @@ export function WorkflowDetail(props: WorkflowDetailProps) {
118
// 2. Block navigation (externally-controlled buttons/links)
119
// Remove listeners on component unload.
120
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
- }
+ const confirmation = window.confirm(
+ 'You have unsaved changes. Are you sure you want to leave?'
+ );
+ if (!confirmation) {
+ e.preventDefault();
128
}
129
};
130
useEffect(() => {
0 commit comments