Merge pull request #912 from h3poteto/iss-895

closes #895 Update pinned hashtags if tags are exist
This commit is contained in:
AkiraFukushima 2019-05-14 23:34:55 +09:00 committed by GitHub
commit 71464cb683
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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)
}
},