Skip to content

Commit

Permalink
Merge pull request #3603 from h3poteto/iss-3587
Browse files Browse the repository at this point in the history
refs #3587 Fix deleting tag timeline
  • Loading branch information
h3poteto committed Sep 4, 2022
2 parents 537a32d + 9199e88 commit f6739ea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<template>
<div name="tag" class="tag-timeline">
<div></div>
<DynamicScroller :items="timeline" :min-item-size="86" id="scroller" class="scroller" ref="scroller">
<template v-slot="{ item, index, active }">
<DynamicScrollerItem :item="item" :active="active" :size-dependencies="[item.uri]" :data-index="index" :watchData="true">
Expand Down
3 changes: 2 additions & 1 deletion src/renderer/store/TimelineSpace/Contents/Hashtag/List.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { LocalTag } from '~/src/types/localTag'
import { Module, MutationTree, ActionTree } from 'vuex'
import { RootState } from '@/store'
import { MyWindow } from '~/src/types/global'
import { toRaw } from 'vue'

const win = window as any as MyWindow

Expand Down Expand Up @@ -35,7 +36,7 @@ const actions: ActionTree<ListState, RootState> = {
return tags
},
[ACTION_TYPES.REMOVE_TAG]: async ({ dispatch }, tag: LocalTag) => {
await win.ipcRenderer.invoke('remove-hashtag', tag)
await win.ipcRenderer.invoke('remove-hashtag', toRaw(tag))
dispatch('listTags')
dispatch('TimelineSpace/SideMenu/listTags', {}, { root: true })
return 'deleted'
Expand Down

0 comments on commit f6739ea

Please sign in to comment.