Fix vocabulary tags fiel type
authorMichal Klobukowski <michal.klobukowski@contractors.roche.com>
Tue, 27 Nov 2018 11:14:47 +0000 (12:14 +0100)
committerMichal Klobukowski <michal.klobukowski@contractors.roche.com>
Tue, 27 Nov 2018 11:14:47 +0000 (12:14 +0100)
Feature #14393

Arvados-DCO-1.1-Signed-off-by: Michal Klobukowski <michal.klobukowski@contractors.roche.com>

src/models/vocabulary.ts
src/store/vocabulary/vocabulary-selctors.ts

index c1c3c1e9acc8cd34ab2d4aeccc36e2fd82a6fda1..363c1771f1a8ac3cccf775e4430a2e66f044917e 100644 (file)
@@ -6,7 +6,7 @@ import { isObject, has, every } from 'lodash/fp';
 
 export interface Vocabulary {
     strict: boolean;
-    tags: Tag[];
+    tags: Record<string, Tag>;
 }
 
 export interface Tag {
index 3bb1e50511ba52b500d2cdb37ecf4eeb8bda4af3..d317cb4786e4babb6db6242916197a27aaabae73 100644 (file)
@@ -9,7 +9,7 @@ export const VOCABULARY_PROPERTY_NAME = 'vocabulary';
 
 export const DEFAULT_VOCABULARY: Vocabulary = {
     strict: false,
-    tags: [],
+    tags: {},
 };
 
 export const getVocabulary = (state: PropertiesState) =>