@@ -224,17 +224,21 @@ async function pluginPacksAndIntegrationsData(context, options) {
224
224
console . info ( "completed the fetch of all the pack details" ) ;
225
225
return { packsPaletteData : packMDMap , packsPaletteDetailsData : apiPacksData , packsDescription : packDescription , repositories : mappedRepos } ;
226
226
} ,
227
- async contentLoaded ( { allContent , content, actions } ) {
227
+ async contentLoaded ( { content, actions } ) {
228
228
const { setGlobalData, addRoute } = actions ;
229
229
const { packsPaletteData, packsPaletteDetailsData, packsDescription, repositories } = content ;
230
- const integrationsData = generateIntegrationData ( allContent ) ;
231
230
const customPacksData = generateCustomData ( packsDescription ) ;
232
231
const unionPackData = combineAPICustomPackData ( packsPaletteData , packsPaletteDetailsData , customPacksData ) ;
233
232
const routes = generateRoutes ( packsPaletteData ) ;
234
233
console . info ( "completed the generation of the routes" ) ;
235
234
routes . map ( route => addRoute ( route ) ) ;
236
- setGlobalData ( { integrations : integrationsData , packs : unionPackData , repositories : repositories } ) ;
235
+ setGlobalData ( { packs : unionPackData , repositories : repositories } ) ;
237
236
} ,
237
+ async allContentLoaded ( { allContent, actions } ) {
238
+ const { setGlobalData } = actions ;
239
+ const integrationsData = generateIntegrationData ( allContent ) ;
240
+ setGlobalData ( { integrations : integrationsData } )
241
+ }
238
242
} ;
239
243
}
240
244
0 commit comments