1
0
Fork 0
mirror of synced 2024-07-03 05:20:32 +12:00

Prevent opening a screen modal if already inside a screen modal

This commit is contained in:
Andrew Kingston 2021-08-24 15:56:23 +01:00
parent 336c3ac1f2
commit 389788709a

View file

@ -42,7 +42,9 @@ const triggerAutomationHandler = async action => {
const navigationHandler = action => {
const { url, peek } = action.parameters
if (url) {
if (peek) {
// If we're already peeking, don't peek again
const isPeeking = get(routeStore).queryParams?.peek
if (peek && !isPeeking) {
peekStore.actions.showPeek(url)
} else {
const external = !url.startsWith("/")