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 c89101b commit 9c14448Copy full SHA for 9c14448
redisinsight/ui/src/pages/rdi/instance/hooks/useUndeployedChangesPrompt.ts
@@ -20,13 +20,14 @@ export const useUndeployedChangesPrompt = () => {
20
}, [changes])
21
22
useEffect(() => {
23
+ // @ts-ignore
24
const unlistenBlockChecker = history.block((location: Location<unknown>) => {
25
if (shouldBlockLeaving && !location?.pathname.startsWith(Pages.rdiPipeline(rdiInstanceId))) {
26
setNextLocation(location)
27
setShowModal(true)
28
return false
29
}
- return ''
30
+ return true
31
})
32
33
return () => {
0 commit comments