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 epics = [getMessagesEpic];
|
||||||
export const types = createTypes([
|
export const types = createTypes([
|
||||||
'clickOnClose',
|
'clickOnClose',
|
||||||
'messagesFoundOnBoot',
|
|
||||||
createAsyncTypes('fetchMessages')
|
createAsyncTypes('fetchMessages')
|
||||||
], ns);
|
], ns);
|
||||||
|
|
||||||
|
@ -21,7 +21,7 @@ export const isFlashAction = _.flow(
|
|||||||
|
|
||||||
export const expressToStack = _.flow(
|
export const expressToStack = _.flow(
|
||||||
_.toPairs,
|
_.toPairs,
|
||||||
_.flatMap(([ type, messages ]) => messages.map(({ msg }) => ({
|
_.flatMap(([ type, messages ]) => messages.map(msg => ({
|
||||||
message: msg,
|
message: msg,
|
||||||
alertType: normalizeAlertType(type)
|
alertType: normalizeAlertType(type)
|
||||||
})))
|
})))
|
||||||
|
Reference in New Issue
Block a user