mirror of
https://github.com/strapi/strapi.git
synced 2025-08-03 06:18:37 +00:00
12 lines
208 B
JavaScript
12 lines
208 B
JavaScript
![]() |
'use strict';
|
||
|
|
||
|
const findComponentByGlobalId = globalId => {
|
||
|
return Object.values(strapi.components).find(
|
||
|
compo => compo.globalId === globalId
|
||
|
);
|
||
|
};
|
||
|
|
||
|
module.exports = {
|
||
|
findComponentByGlobalId,
|
||
|
};
|