optional chaining

This commit is contained in:
Henry Jameson 2026-08-04 18:04:20 +03:00
commit 5ea3d462b9
34 changed files with 68 additions and 77 deletions

View file

@ -196,9 +196,11 @@ export const _getRecentData = (cache, live, isTest) => {
export const _getAllFlags = (recent, stale) => {
return Array.from(
recentStorage = toRaw(recent?.flagStorage)
staleStorage = toRaw(stale?.flagStorage)
new Set([
...Object.keys(toRaw((recent || {}).flagStorage || {})),
...Object.keys(toRaw((stale || {}).flagStorage || {})),
...Object.keys(recentStorage || {}),
...Object.keys(staleStorage || {}),
]),
)
}