From 028b8ca12dbf19c890c2337894b88e7f23a5e97d Mon Sep 17 00:00:00 2001 From: Michal Klobukowski Date: Tue, 27 Nov 2018 12:14:47 +0100 Subject: [PATCH] Fix vocabulary tags fiel type Feature #14393 Arvados-DCO-1.1-Signed-off-by: Michal Klobukowski --- src/models/vocabulary.ts | 2 +- src/store/vocabulary/vocabulary-selctors.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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) => -- 2.30.2