mirror of
				https://github.com/strapi/strapi.git
				synced 2025-10-31 09:56:44 +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, | ||
|  | }; |