Skip to content

Commit bf9bfcd

Browse files
committed
fix(platform): mount the Settings leave guard on live data again
The live shell's SessionState mounted the discard dialog for live Settings; consolidating the local preview removed it, so leaving a dirty editor (such as a data retention pattern) no longer asked first. Fixture Settings and the fixture integration center keep their own mounts.
1 parent 5dad616 commit bf9bfcd

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎apps/sim/platform/app/(shell)/_components/session-state/session-state.tsx‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
'use client'
22

33
import styles from '@/platform/app/(shell)/_components/session-state/session-state.module.css'
4+
import { SettingsLeaveGuard } from '@/platform/app/(shell)/_components/session-state/settings-leave-guard'
45
import { Button } from '@/platform/design-system/components'
56
import { useImpersonation, useSessionRecovery } from '@/platform/lib/data/session'
67

@@ -43,6 +44,7 @@ export function SessionState() {
4344
<>
4445
<ImpersonationBanner />
4546
<SessionExpired />
47+
<SettingsLeaveGuard />
4648
</>
4749
)
4850
}

0 commit comments

Comments
 (0)