From c0b04662d58592e247c901a5e545b7ef179da420 Mon Sep 17 00:00:00 2001
From: AkiraFukushima
Date: Sun, 12 May 2019 21:44:34 +0900
Subject: [PATCH] refs #895 Update pinned hashtags if tags are exist
---
src/renderer/store/TimelineSpace/Modals/NewToot.ts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/renderer/store/TimelineSpace/Modals/NewToot.ts b/src/renderer/store/TimelineSpace/Modals/NewToot.ts
index cb65b8b6..47aefcdc 100644
--- a/src/renderer/store/TimelineSpace/Modals/NewToot.ts
+++ b/src/renderer/store/TimelineSpace/Modals/NewToot.ts
@@ -214,7 +214,7 @@ const actions: ActionTree = {
commit(MUTATION_TYPES.UPDATE_MEDIA_ID, 0)
},
updateHashtags: ({ commit, state }, tags: Array) => {
- if (state.pinedHashtag) {
+ if (state.pinedHashtag && tags.length > 0) {
commit(MUTATION_TYPES.UPDATE_HASHTAGS, tags)
}
},