fix lint
This commit is contained in:
parent
62b3f41bed
commit
207c057304
@ -9,7 +9,6 @@ import { getServiceHub } from '@/hooks/useServiceHub'
|
|||||||
import { supportsBlurEffects } from '@/utils/blurSupport'
|
import { supportsBlurEffects } from '@/utils/blurSupport'
|
||||||
import {
|
import {
|
||||||
DEFAULT_THREAD_SCROLL_BEHAVIOR,
|
DEFAULT_THREAD_SCROLL_BEHAVIOR,
|
||||||
THREAD_SCROLL_BEHAVIOR,
|
|
||||||
ThreadScrollBehavior,
|
ThreadScrollBehavior,
|
||||||
isThreadScrollBehavior,
|
isThreadScrollBehavior,
|
||||||
} from '@/constants/threadScroll'
|
} from '@/constants/threadScroll'
|
||||||
@ -288,7 +287,9 @@ const migrateFromGeneralSettings = (): string | null => {
|
|||||||
localStorage.setItem(localStorageKey.settingInterface, migrated)
|
localStorage.setItem(localStorageKey.settingInterface, migrated)
|
||||||
|
|
||||||
if (parsed?.state) {
|
if (parsed?.state) {
|
||||||
const { threadScrollBehavior: _removed, ...rest } = parsed.state
|
const rest = { ...parsed.state }
|
||||||
|
delete rest.threadScrollBehavior
|
||||||
|
|
||||||
const cleaned = JSON.stringify({
|
const cleaned = JSON.stringify({
|
||||||
...parsed,
|
...parsed,
|
||||||
state: rest,
|
state: rest,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user