lib/associationProcessorService.js
async function renderOneComponent(definitionGroupName, definition) {
        const childDefinitionMap = definition.associations;

        // replacing child definitions with rendered child components
        definition.associations = await renderAssociationMap(childDefinitionMap);

        // we can try to use the group name as a layout
        definition.layout =  definition.layout || definitionGroupName;

        return renderComponent(definition);
    }
async function renderOneComponent(definitionGroupName, definition) {
        const childDefinitionMap = definition.associations;

        // replacing child definitions with rendered child components
        definition.associations = await renderAssociationMap(childDefinitionMap);

        // we can try to use the group name as a layout
        definition.layout =  definition.layout || definitionGroupName;

        return renderComponent(definition);
    }
async function renderOneComponent ( definitionGroupName , definition ) { const childDefinitionMap = definition . associations ; // replacing child definitions with rendered child components definition . associations = await renderAssociationMap ( childDefinitionMap ) ; // we can try to use the group name as a layout definition . layout = definition . layout || definitionGroupName ; return renderComponent ( definition ) ; }
Renders a single Windshield component definition into a rendered
component object

@param {string} definitionGroupName - Name of the association that contains the component
@param {ComponentDefinition} definition - Config for a Windshield Component

@return {Promise.<RenderedComponent>}
Renders a single Windshield component definition into a rendered component object