fix a lot of stuff by simply moving const to a proper place

This commit is contained in:
Henry Jameson 2026-03-16 20:15:39 +02:00
commit c2be818504
6 changed files with 10 additions and 15 deletions

View file

@ -108,7 +108,7 @@ const MentionLink = {
return this.highlightData && '-' + this.highlightData.type
},
highlightClass() {
return this.highlightData && highlightClass(this.user)
return this.highlightData && highlightClass(this.user)
},
style() {
if (this.highlightData) {

View file

@ -9,12 +9,10 @@ import PanelLoading from 'src/components/panel_loading/panel_loading.vue'
import Popover from '../popover/popover.vue'
import { useInterfaceStore } from 'src/stores/interface.js'
import {
LOCAL_ONLY_KEYS,
useLocalConfigStore,
} from 'src/stores/local_config.js'
import { useLocalConfigStore } from 'src/stores/local_config.js'
import { useSyncConfigStore } from 'src/stores/sync_config.js'
import { LOCAL_ONLY_KEYS } from 'src/modules/default_config_state.js'
import {
newExporter,
newImporter,

View file

@ -36,7 +36,7 @@ const FilteringTab = {
label: this.$t(`user_card.mute_block_${mode}`),
})),
muteFiltersDraftObject: cloneDeep(
useSyncConfigStore().prefsStorage.simple.muteFilters,
useSyncConfigStore().mergedConfig.muteFilters,
),
muteFiltersDraftDirty: Object.fromEntries(
Object.entries(
@ -260,7 +260,7 @@ const FilteringTab = {
},
muteFiltersObject() {
this.muteFiltersDraftObject = cloneDeep(
useSyncConfigStore().prefsStorage.simple.muteFilters,
useSyncConfigStore().mergedConfig.muteFilters,
)
},
},