mirror of
https://github.com/nowcommunity/nowdatabase.git
synced 2026-10-12 19:13:52 +03:00
Merge pull request #1187 from nowcommunity/codex/1184-time-unit-error
fix: Fix invalid blocker state transition in UnsavedChangesProvider (#1184)
This commit is contained in:
@@ -72,8 +72,8 @@ export const UnsavedChangesProvider = ({
|
||||
|
||||
const handleConfirm = useCallback(() => {
|
||||
if (blocker.state === 'blocked') {
|
||||
setDirty(false)
|
||||
blocker.proceed?.()
|
||||
setDirty(false)
|
||||
}
|
||||
}, [blocker, setDirty])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user