function addExistingAppComponentParameters()

in lib/Utils/CreateAndRunUtils.js [49:64]


function addExistingAppComponentParameters(appcomponents, existingParams) {
    var _a, _b, _c;
    if (appcomponents) {
        for (let guid in appcomponents === null || appcomponents === void 0 ? void 0 : appcomponents.components) {
            let resourceId = (_b = (_a = appcomponents.components[guid]) === null || _a === void 0 ? void 0 : _a.resourceId) !== null && _b !== void 0 ? _b : "";
            if (existingParams.appComponents.has(resourceId === null || resourceId === void 0 ? void 0 : resourceId.toLowerCase())) {
                let existingGuids = (_c = existingParams.appComponents.get(resourceId === null || resourceId === void 0 ? void 0 : resourceId.toLowerCase())) !== null && _c !== void 0 ? _c : [];
                existingGuids.push(guid);
                existingParams.appComponents.set(resourceId.toLowerCase(), existingGuids);
            }
            else {
                existingParams.appComponents.set(resourceId.toLowerCase(), [guid]);
            }
        }
    }
}