Refactor selectComposeSuggestion so that different paths can be updated
This commit is contained in:
1 parent
1c0402c103
commit
3a671470ec
3 files changed
+11
-8
No files matched your search
@@ -407,7 +407,7 @@ export function readyComposeSuggestionsAccounts(token, accounts) {
|
||||
};
|
||||
};
|
||||
|
||||
export function selectComposeSuggestion(position, token, suggestion) {
|
||||
export function selectComposeSuggestion(position, token, suggestion, path) {
|
||||
return (dispatch, getState) => {
|
||||
let completion;
|
||||
if (typeof suggestion === 'object' && suggestion.id) {
|
||||
@@ -424,6 +424,7 @@ export function selectComposeSuggestion(position, token, suggestion) {
|
||||
position,
|
||||
token,
|
||||
completion,
|
||||
path,
|
||||
});
|
||||
};
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user