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] delete map[componentId]
} }
// Only return components which provide at least 1 matching context
return Object.values(map).filter(x => x.contexts.length > 0) 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 // Check for duplicate contexts by the same component. In this case, attempt
// to label contexts with their suffixes // to label contexts with their suffixes
schemaComponentContexts.forEach(schemaContext => { schemaComponentContexts.forEach(schemaContext => {