mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-06 07:39:02 +02:00
Fixing migration issue by removing check for keys to remove (#32440)
GitOrigin-RevId: 18377e4830e9e6fc6582b812caf0ac8f679c72a9
This commit is contained in:
committed by
Copybot
parent
27e5044d30
commit
ce6f0dd249
@@ -68,10 +68,6 @@ export const UserSettingsProvider: FC<React.PropsWithChildren> = ({
|
||||
|
||||
useEffect(() => {
|
||||
const { patch, keysToRemove } = getLegacyWriteAndCiteMigration(userSettings)
|
||||
if (keysToRemove.length === 0) {
|
||||
return
|
||||
}
|
||||
|
||||
if (Object.keys(patch).length === 0) {
|
||||
keysToRemove.forEach(customLocalStorage.removeItem)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user