10 lines
200 B
JavaScript
Raw Normal View History

2019-11-26 11:24:00 +01:00
'use strict';
const findComponentByGlobalId = globalId => {
2021-04-29 11:11:46 +02:00
return Object.values(strapi.components).find(compo => compo.globalId === globalId);
2019-11-26 11:24:00 +01:00
};
module.exports = {
findComponentByGlobalId,
};