1
0
Fork 0
mirror of synced 2024-09-08 13:41:09 +12:00

Remove log and add comments

This commit is contained in:
Andrew Kingston 2023-11-29 09:19:21 +00:00
parent 8bc0aec2c1
commit b7dbb2a76c
2 changed files with 1 additions and 2 deletions

View file

@ -254,6 +254,7 @@ export const getComponentContexts = (
delete map[componentId]
}
// Only return components which provide at least 1 matching context
return Object.values(map).filter(x => x.contexts.length > 0)
}

View file

@ -25,8 +25,6 @@ export const getDatasourceLikeProviders = ({ asset, componentId, nested }) => {
}
)
console.log(formComponentContexts)
// Check for duplicate contexts by the same component. In this case, attempt
// to label contexts with their suffixes
schemaComponentContexts.forEach(schemaContext => {