mirror of
https://github.com/strapi/strapi.git
synced 2025-11-22 13:11:55 +00:00
10 lines
200 B
JavaScript
10 lines
200 B
JavaScript
'use strict';
|
|
|
|
const findComponentByGlobalId = globalId => {
|
|
return Object.values(strapi.components).find(compo => compo.globalId === globalId);
|
|
};
|
|
|
|
module.exports = {
|
|
findComponentByGlobalId,
|
|
};
|