Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix to update suggestion list after dismiss #16044

Merged
merged 3 commits into from
Apr 16, 2021

Conversation

noellabo
Copy link
Contributor

No description provided.

@@ -48,5 +48,7 @@ export const dismissSuggestion = accountId => (dispatch, getState) => {
id: accountId,
});

api(getState).delete(`/api/v1/suggestions/${accountId}`);
api(getState).delete(`/api/v1/suggestions/${accountId}`).then(() => {
fetchSuggestions()(dispatch, getState);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this not be called through dispatch?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wrote the contents of fetchSuggestions inline.

@Gargron Gargron merged commit 9bb3341 into mastodon:main Apr 16, 2021
@noellabo noellabo deleted the fix-update-suggestion-list branch April 16, 2021 08:10
chrisguida pushed a commit to Start9Labs/mastodon that referenced this pull request Feb 26, 2022
* Fix to update suggestion list after dismiss

* Change to inline

* Fix style
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants