Merge branch '19079-search-results-open-newtab' into main. Closes #19079
[arvados.git] / 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     });