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(() => {
|
const handleDiscard = useCallback(() => {
|
||||||
isDirtyRef.current = false
|
isDirtyRef.current = false
|
||||||
|
setIsDirtyVisible(false)
|
||||||
setHasPendingAction(false)
|
setHasPendingAction(false)
|
||||||
|
saveHandlerRef.current = null
|
||||||
const action = pendingActionRef.current
|
const action = pendingActionRef.current
|
||||||
pendingActionRef.current = null
|
pendingActionRef.current = null
|
||||||
action?.()
|
action?.()
|
||||||
|
|||||||
Reference in New Issue
Block a user