refs #895 Update pinned hashtags if tags are exist
This commit is contained in:
parent
064ab4d44a
commit
c0b04662d5
|
@ -214,7 +214,7 @@ const actions: ActionTree<NewTootState, RootState> = {
|
||||||
commit(MUTATION_TYPES.UPDATE_MEDIA_ID, 0)
|
commit(MUTATION_TYPES.UPDATE_MEDIA_ID, 0)
|
||||||
},
|
},
|
||||||
updateHashtags: ({ commit, state }, tags: Array<Tag>) => {
|
updateHashtags: ({ commit, state }, tags: Array<Tag>) => {
|
||||||
if (state.pinedHashtag) {
|
if (state.pinedHashtag && tags.length > 0) {
|
||||||
commit(MUTATION_TYPES.UPDATE_HASHTAGS, tags)
|
commit(MUTATION_TYPES.UPDATE_HASHTAGS, tags)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue