Fixes
This commit is contained in:
parent
b931a24d5e
commit
fbd020ec31
|
@ -305,9 +305,9 @@ const buildContextTree = (
|
|||
* Generates a lookup map of which context branch all components in a component
|
||||
* tree are inside.
|
||||
*/
|
||||
export const buildContextTreeLookupMap = rootComponent => {
|
||||
export const buildContextTreeLookupMap = (rootComponent: Component) => {
|
||||
const tree = buildContextTree(rootComponent)
|
||||
let map = {}
|
||||
const map: Record<string, string> = {}
|
||||
Object.entries(tree).forEach(([branch, ids]) => {
|
||||
ids.forEach(id => {
|
||||
map[id] = branch
|
||||
|
|
|
@ -112,7 +112,7 @@ export const EventPublishType = {
|
|||
ENV_VAR_UPGRADE_PANEL_OPENED: "environment_variable_upgrade_panel_opened",
|
||||
}
|
||||
|
||||
export { ComponentContextScopes } from "@budibase/types"
|
||||
export { ComponentContextScopes as ContextScopes } from "@budibase/types"
|
||||
|
||||
export const TypeIconMap = {
|
||||
[FieldType.STRING]: "Text",
|
||||
|
|
Loading…
Reference in New Issue