We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df859c1 commit b9036d9Copy full SHA for b9036d9
ui/src/components/forms/common/NavigationBlocker.tsx
@@ -142,7 +142,12 @@ export function useDirtyFormBlockNavigation(
142
143
// If processing a "close button click" that is trying to close a
144
// modal, the form with the same context should be able to block it.
145
- if (context && 'context' in args && args.context !== context) {
+ if (
146
+ context &&
147
+ 'context' in args &&
148
+ args.context &&
149
+ args.context !== context
150
+ ) {
151
return false;
152
}
153
0 commit comments