fix: reset save bar visibility and handler on discard
This commit is contained in:
@@ -279,7 +279,9 @@ export default function UnifiedSettingsModal() {
|
||||
|
||||
const handleDiscard = useCallback(() => {
|
||||
isDirtyRef.current = false
|
||||
setIsDirtyVisible(false)
|
||||
setHasPendingAction(false)
|
||||
saveHandlerRef.current = null
|
||||
const action = pendingActionRef.current
|
||||
pendingActionRef.current = null
|
||||
action?.()
|
||||
|
||||
Reference in New Issue
Block a user