Screen type fixes
This commit is contained in:
parent
ff4d0841b0
commit
744b1d3dbc
|
@ -49,7 +49,12 @@ export class ComponentTreeNodesStore extends BudiStore<OpenNodesState> {
|
||||||
|
|
||||||
// Will ensure all parents of a node are expanded so that it is visible in the tree
|
// Will ensure all parents of a node are expanded so that it is visible in the tree
|
||||||
makeNodeVisible(componentId: string) {
|
makeNodeVisible(componentId: string) {
|
||||||
const selectedScreen: Screen = get(selectedScreenStore)
|
const selectedScreen: Screen | undefined = get(selectedScreenStore)
|
||||||
|
|
||||||
|
if (!selectedScreen) {
|
||||||
|
console.error("Invalid node " + componentId)
|
||||||
|
return {}
|
||||||
|
}
|
||||||
|
|
||||||
const path = findComponentPath(selectedScreen.props, componentId)
|
const path = findComponentPath(selectedScreen.props, componentId)
|
||||||
|
|
||||||
|
|
|
@ -16,7 +16,14 @@ import { auth, appsStore } from "@/stores/portal"
|
||||||
import { screenStore } from "./screens"
|
import { screenStore } from "./screens"
|
||||||
import { SocketEvent, BuilderSocketEvent, helpers } from "@budibase/shared-core"
|
import { SocketEvent, BuilderSocketEvent, helpers } from "@budibase/shared-core"
|
||||||
import { notifications } from "@budibase/bbui"
|
import { notifications } from "@budibase/bbui"
|
||||||
import { Automation, Datasource, Role, Table, UIUser } from "@budibase/types"
|
import {
|
||||||
|
Automation,
|
||||||
|
Datasource,
|
||||||
|
Role,
|
||||||
|
Table,
|
||||||
|
UIUser,
|
||||||
|
Screen,
|
||||||
|
} from "@budibase/types"
|
||||||
|
|
||||||
export const createBuilderWebsocket = (appId: string) => {
|
export const createBuilderWebsocket = (appId: string) => {
|
||||||
const socket = createWebsocket("/socket/builder")
|
const socket = createWebsocket("/socket/builder")
|
||||||
|
|
Loading…
Reference in New Issue