Prevent opening a screen modal if already inside a screen modal
This commit is contained in:
parent
8048e9a8ce
commit
1b91db2ece
|
@ -42,7 +42,9 @@ const triggerAutomationHandler = async action => {
|
||||||
const navigationHandler = action => {
|
const navigationHandler = action => {
|
||||||
const { url, peek } = action.parameters
|
const { url, peek } = action.parameters
|
||||||
if (url) {
|
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)
|
peekStore.actions.showPeek(url)
|
||||||
} else {
|
} else {
|
||||||
const external = !url.startsWith("/")
|
const external = !url.startsWith("/")
|
||||||
|
|
Loading…
Reference in New Issue