1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-04-19 01:17:18 +02:00

fix: flag inital context fields

This commit is contained in:
Ivar Conradi Østhus 2020-07-29 21:35:00 +02:00
parent ec06a63a8b
commit a12c0e32b2

View File

@ -2,7 +2,11 @@ import { List } from 'immutable';
import { RECEIVE_CONTEXT, REMOVE_CONTEXT, ADD_CONTEXT_FIELD, UPDATE_CONTEXT_FIELD } from './actions';
import { USER_LOGOUT, USER_LOGIN } from '../user/actions';
const DEFAULT_CONTEXT_FIELDS = [{ name: 'environment' }, { name: 'userId' }, { name: 'appName' }];
const DEFAULT_CONTEXT_FIELDS = [
{ name: 'environment', inital: true },
{ name: 'userId', inital: true },
{ name: 'appName', inital: true },
];
function getInitState() {
return new List(DEFAULT_CONTEXT_FIELDS);