Fix types

This commit is contained in:
Adria Navarro 2025-01-20 23:14:45 +01:00
parent 058b3def3a
commit 4671633bfe
2 changed files with 9 additions and 2 deletions
packages/builder/src/stores/builder

View File

@ -49,7 +49,7 @@ export class ComponentTreeNodesStore extends BudiStore<OpenNodesState> {
// Will ensure all parents of a node are expanded so that it is visible in the tree
makeNodeVisible(componentId: string) {
const selectedScreen: Screen = get(selectedScreenStore)
const selectedScreen: Screen = get(selectedScreenStore)!
const path = findComponentPath(selectedScreen.props, componentId)

View File

@ -16,7 +16,14 @@ import { auth, appsStore } from "@/stores/portal"
import { screenStore } from "./screens"
import { SocketEvent, BuilderSocketEvent, helpers } from "@budibase/shared-core"
import { notifications } from "@budibase/bbui"
import { Automation, Datasource, Role, Table, UIUser } from "@budibase/types"
import {
Automation,
Datasource,
Role,
Screen,
Table,
UIUser,
} from "@budibase/types"
export const createBuilderWebsocket = (appId: string) => {
const socket = createWebsocket("/socket/builder")