fix(Flash): Express flash format is [...String] (#16539)

This commit is contained in:
Berkeley Martinez
2018-01-20 08:29:34 -08:00
committed by mrugesh mohapatra
parent ab6b04b0f1
commit f439593676
2 changed files with 1 additions and 2 deletions

View File

@ -14,7 +14,6 @@ import ns from '../ns.json';
export const epics = [getMessagesEpic];
export const types = createTypes([
'clickOnClose',
'messagesFoundOnBoot',
createAsyncTypes('fetchMessages')
], ns);

View File

@ -21,7 +21,7 @@ export const isFlashAction = _.flow(
export const expressToStack = _.flow(
_.toPairs,
_.flatMap(([ type, messages ]) => messages.map(({ msg }) => ({
_.flatMap(([ type, messages ]) => messages.map(msg => ({
message: msg,
alertType: normalizeAlertType(type)
})))