This commit is contained in:
dinhlongviolin1 2025-10-30 01:12:55 +07:00
parent 62b3f41bed
commit 207c057304

View File

@ -9,7 +9,6 @@ import { getServiceHub } from '@/hooks/useServiceHub'
import { supportsBlurEffects } from '@/utils/blurSupport'
import {
DEFAULT_THREAD_SCROLL_BEHAVIOR,
THREAD_SCROLL_BEHAVIOR,
ThreadScrollBehavior,
isThreadScrollBehavior,
} from '@/constants/threadScroll'
@ -288,7 +287,9 @@ const migrateFromGeneralSettings = (): string | null => {
localStorage.setItem(localStorageKey.settingInterface, migrated)
if (parsed?.state) {
const { threadScrollBehavior: _removed, ...rest } = parsed.state
const rest = { ...parsed.state }
delete rest.threadScrollBehavior
const cleaned = JSON.stringify({
...parsed,
state: rest,