Skip to content

Fix to update suggestion list after dismiss#16044

Merged
Gargron merged 3 commits intomastodon:mainfrom
fedibird:fix-update-suggestion-list
Apr 16, 2021
Merged

Fix to update suggestion list after dismiss#16044
Gargron merged 3 commits intomastodon:mainfrom
fedibird:fix-update-suggestion-list

Conversation

@noellabo
Copy link
Copy Markdown
Contributor

No description provided.


api(getState).delete(`/api/v1/suggestions/${accountId}`);
api(getState).delete(`/api/v1/suggestions/${accountId}`).then(() => {
fetchSuggestions()(dispatch, getState);
Copy link
Copy Markdown
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
Copy Markdown
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