15530: Link account page has link to home cluster
[arvados.git] / src / store / config / config-reducer.ts
index 070bae18497e1003421508efa9f8afc758197e8d..f0b76b148fc1cbacb0e23600949acc5a67ed2d00 100644 (file)
@@ -3,21 +3,13 @@
 // SPDX-License-Identifier: AGPL-3.0
 
 import { configActions, ConfigAction } from "./config-action";
-import { Config, mockConfig } from '~/common/config';
+import { mockConfig } from '~/common/config';
 
-export interface ConfigState {
-    config: Config;
-}
-
-const initialState: ConfigState = {
-    config: mockConfig({}),
-};
-
-export const configReducer = (state = initialState, action: ConfigAction) => {
+export const configReducer = (state = mockConfig({}), action: ConfigAction) => {
     return configActions.match(action, {
         CONFIG: ({ config }) => {
             return {
-                ...state, config
+                ...state, ...config
             };
         },
         default: () => state