1
0
Fork 0
mirror of synced 2024-06-29 11:31:06 +12:00

Fix add component button in empty screens

This commit is contained in:
Andrew Kingston 2022-08-01 15:52:01 +01:00
parent 328c3a8754
commit 572762eca9

View file

@ -20,7 +20,7 @@
} from "@budibase/bbui"
import ErrorSVG from "@budibase/frontend-core/assets/error.svg?raw"
import { findComponent, findComponentPath } from "builderStore/componentUtils"
import { isActive, goto } from "@roxi/routify"
import { isActive, goto, url } from "@roxi/routify"
import { Screen } from "builderStore/store/screenTemplates/utils/Screen"
let iframe
@ -186,7 +186,7 @@
$goto("./navigation")
}
} else if (type === "request-add-component") {
$goto("./components/new")
$goto(`./components/${$selectedComponent?._id}/new`)
} else if (type === "highlight-setting") {
store.actions.settings.highlight(data.setting)