From: Michal Klobukowski Date: Tue, 27 Nov 2018 11:14:47 +0000 (+0100) Subject: Fix vocabulary tags fiel type X-Git-Tag: 1.3.0~5^2^2^2~27 X-Git-Url: https://git.arvados.org/arvados-workbench2.git/commitdiff_plain/028b8ca12dbf19c890c2337894b88e7f23a5e97d Fix vocabulary tags fiel type Feature #14393 Arvados-DCO-1.1-Signed-off-by: Michal Klobukowski --- diff --git a/src/models/vocabulary.ts b/src/models/vocabulary.ts index c1c3c1e9..363c1771 100644 --- a/src/models/vocabulary.ts +++ b/src/models/vocabulary.ts @@ -6,7 +6,7 @@ import { isObject, has, every } from 'lodash/fp'; export interface Vocabulary { strict: boolean; - tags: Tag[]; + tags: Record; } export interface Tag { diff --git a/src/store/vocabulary/vocabulary-selctors.ts b/src/store/vocabulary/vocabulary-selctors.ts index 3bb1e505..d317cb47 100644 --- a/src/store/vocabulary/vocabulary-selctors.ts +++ b/src/store/vocabulary/vocabulary-selctors.ts @@ -9,7 +9,7 @@ export const VOCABULARY_PROPERTY_NAME = 'vocabulary'; export const DEFAULT_VOCABULARY: Vocabulary = { strict: false, - tags: [], + tags: {}, }; export const getVocabulary = (state: PropertiesState) =>