21700: Install Bundler system-wide in Rails postinst
[arvados.git] / services / workbench2 / src / store / owner-name / owner-name-reducer.ts
1 // Copyright (C) The Arvados Authors. All rights reserved.
2 //
3 // SPDX-License-Identifier: AGPL-3.0
4
5 import { ownerNameActions, OwnerNameAction } from './owner-name-actions';
6
7 export const ownerNameReducer = (state = [], action: OwnerNameAction) =>
8     ownerNameActions.match(action, {
9         SET_OWNER_NAME: data => [...state, { uuid: data.uuid, name: data.name }],
10         default: () => state,
11     });