fix: let flags get updated (#18610)

pull/18617/head
Alex Boatwright 2020-06-18 13:18:15 -07:00 committed by GitHub
parent f378c228d5
commit a51b1c23ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -3,6 +3,7 @@ import {get} from 'lodash'
// Types // Types
import {LocalStorage} from 'src/types' import {LocalStorage} from 'src/types'
import {FlagState} from 'src/shared/reducers/flags'
// Constants // Constants
import {VERSION} from 'src/shared/constants' import {VERSION} from 'src/shared/constants'
@ -39,7 +40,7 @@ export const normalizeSetLocalStorage = (state: LocalStorage): LocalStorage => {
VERSION, VERSION,
autoRefresh, autoRefresh,
userSettings, userSettings,
flags, flags: {override: flags.override} as FlagState,
app: normalizeApp(app), app: normalizeApp(app),
ranges: setLocalStateRanges(ranges), ranges: setLocalStateRanges(ranges),
resources: normalizeResources(state), resources: normalizeResources(state),