Merge commit 'dee69e4f83
' into kb_migration
This commit is contained in:
commit
f010acbde2
18 changed files with 286 additions and 59 deletions
|
@ -43,11 +43,11 @@ export function fetchReactionDeckFail(error) {
|
|||
};
|
||||
}
|
||||
|
||||
export function updateReactionDeck(id, emoji) {
|
||||
export function updateReactionDeck(emojis) {
|
||||
return (dispatch, getState) => {
|
||||
dispatch(updateReactionDeckRequest());
|
||||
|
||||
api(getState).post('/api/v1/reaction_deck', { emojis: [{ id, emoji: emoji.native || emoji.id }] }).then(response => {
|
||||
api(getState).post('/api/v1/reaction_deck', { emojis }).then(response => {
|
||||
dispatch(updateReactionDeckSuccess(response.data));
|
||||
}).catch(error => {
|
||||
dispatch(updateReactionDeckFail(error));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue