fix(Flash): Express flash format is [...String] (#16539)
This commit is contained in:
committed by
mrugesh mohapatra
parent
ab6b04b0f1
commit
f439593676
@ -14,7 +14,6 @@ import ns from '../ns.json';
|
||||
export const epics = [getMessagesEpic];
|
||||
export const types = createTypes([
|
||||
'clickOnClose',
|
||||
'messagesFoundOnBoot',
|
||||
createAsyncTypes('fetchMessages')
|
||||
], ns);
|
||||
|
||||
|
@ -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)
|
||||
})))
|
||||
|
Reference in New Issue
Block a user