refs #895 Update pinned hashtags if tags are exist

This commit is contained in:
AkiraFukushima 2019-05-12 21:44:34 +09:00
parent 064ab4d44a
commit c0b04662d5
1 changed files with 1 additions and 1 deletions

View File

@ -214,7 +214,7 @@ const actions: ActionTree<NewTootState, RootState> = {
commit(MUTATION_TYPES.UPDATE_MEDIA_ID, 0)
},
updateHashtags: ({ commit, state }, tags: Array<Tag>) => {
if (state.pinedHashtag) {
if (state.pinedHashtag && tags.length > 0) {
commit(MUTATION_TYPES.UPDATE_HASHTAGS, tags)
}
},