mirror of
https://github.com/strapi/strapi.git
synced 2025-08-01 05:17:14 +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,
|
|
};
|