Merge pull request #912 from h3poteto/iss-895
closes #895 Update pinned hashtags if tags are exist
This commit is contained in:
commit
71464cb683
|
@ -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)
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue