From a12c0e32b202796476da647e3dc452ffa493bc26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivar=20Conradi=20=C3=98sthus?= Date: Wed, 29 Jul 2020 21:35:00 +0200 Subject: [PATCH] fix: flag inital context fields --- frontend/src/store/context/index.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/frontend/src/store/context/index.js b/frontend/src/store/context/index.js index a70ea14d9a..35406abad7 100644 --- a/frontend/src/store/context/index.js +++ b/frontend/src/store/context/index.js @@ -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);