Cache: Fix migration check (#4122)
This commit is contained in:
parent
449c241201
commit
cc1fb8d1cd
@ -206,7 +206,7 @@ function unsafeMigrateCache(cached: GlobalState, initialState: GlobalState) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Clear old color storage to optimize cache size
|
// Clear old color storage to optimize cache size
|
||||||
if (untypedCached.appConfig.peerColors) {
|
if (untypedCached?.appConfig?.peerColors) {
|
||||||
untypedCached.appConfig.peerColors = undefined;
|
untypedCached.appConfig.peerColors = undefined;
|
||||||
untypedCached.appConfig.darkPeerColors = undefined;
|
untypedCached.appConfig.darkPeerColors = undefined;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user