diff --git a/src/renderer/components/TimelineSpace/Contents/Lists/Index.vue b/src/renderer/components/TimelineSpace/Contents/Lists/Index.vue index 2ab2f69f..332e86b1 100644 --- a/src/renderer/components/TimelineSpace/Contents/Lists/Index.vue +++ b/src/renderer/components/TimelineSpace/Contents/Lists/Index.vue @@ -76,6 +76,7 @@ export default { } finally { this.creating = false } + await this.$store.dispatch('TimelineSpace/SideMenu/fetchLists') }, edit (list) { return this.$router.push(`/${this.id()}/lists/${list.id}/edit`) diff --git a/src/renderer/store/TimelineSpace/SideMenu.js b/src/renderer/store/TimelineSpace/SideMenu.js index a5cfe0f7..421316b0 100644 --- a/src/renderer/store/TimelineSpace/SideMenu.js +++ b/src/renderer/store/TimelineSpace/SideMenu.js @@ -27,7 +27,8 @@ const SideMenu = { } }, actions: { - fetchLists ({ commit }, account) { + fetchLists ({ commit, rootState }, account = null) { + if (account === null) account = rootState.TimelineSpace.account const client = new Mastodon( account.accessToken, account.baseURL + '/api/v1'