This commit is contained in:
Joel Varty
2021-06-17 15:25:22 -04:00
parent e836a5950f
commit b2d078a37f
3 changed files with 8 additions and 4 deletions

View File

@@ -14,7 +14,7 @@ const allModules:any =[
* Find the data method for a module by module reference name.
* @param moduleName
*/
export const getModuleData = (moduleName:string):any => {
export default (moduleName:string):any => {
const obj = allModules.find((m: { name: string }) => m.name.toLowerCase() === moduleName.toLowerCase())
if (!obj) return null
return obj.init