fix cannot read map of null error
This commit is contained in:
parent
5dbb095d4a
commit
b9262ffdf0
|
@ -6,7 +6,7 @@ export const MODULES_TABLE_ADDRESS_ID = 'address'
|
|||
export const MODULES_TABLE_ACTIONS_ID = 'actions'
|
||||
|
||||
export const getModuleData = (modulesList: List<ModulePair>): List<{ [MODULES_TABLE_ADDRESS_ID]: ModulePair }> => {
|
||||
return modulesList.map((modules) => ({
|
||||
return modulesList?.map((modules) => ({
|
||||
[MODULES_TABLE_ADDRESS_ID]: modules,
|
||||
}))
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue