Convert file

This commit is contained in:
Adria Navarro 2025-02-17 14:44:39 +01:00
parent da2a7ab83f
commit a2d36410d6
1 changed files with 2 additions and 1 deletions

View File

@ -8,13 +8,14 @@ import {
} from "@budibase/string-templates"
import { capitalise } from "@/helpers"
import { Constants } from "@budibase/frontend-core"
import { ScreenProps } from "@budibase/types"
const { ContextScopes } = Constants
/**
* Recursively searches for a specific component ID
*/
export const findComponent = (rootComponent, id) => {
export const findComponent = (rootComponent: ScreenProps, id: string) => {
return searchComponentTree(rootComponent, comp => comp._id === id)
}