X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/b7de31f185fccd2f9b276c1e89754d288e7facfe..0e98b3fc0b3c49e6268905fba19859b05e26fc4f:/src/store/vocabulary/vocabulary-actions.ts diff --git a/src/store/vocabulary/vocabulary-actions.ts b/src/store/vocabulary/vocabulary-actions.ts index 799cffa0..d73c01fe 100644 --- a/src/store/vocabulary/vocabulary-actions.ts +++ b/src/store/vocabulary/vocabulary-actions.ts @@ -3,14 +3,13 @@ // SPDX-License-Identifier: AGPL-3.0 import { Dispatch } from 'redux'; -import { ServiceRepository } from '~/services/services'; -import { propertiesActions } from '~/store/properties/properties-actions'; -import { VOCABULARY_PROPERTY_NAME, DEFAULT_VOCABULARY } from './vocabulary-selctors'; -import { isVocabulary } from '~/models/vocabulary'; +import { ServiceRepository } from 'services/services'; +import { propertiesActions } from 'store/properties/properties-actions'; +import { VOCABULARY_PROPERTY_NAME, DEFAULT_VOCABULARY } from './vocabulary-selectors'; +import { isVocabulary } from 'models/vocabulary'; export const loadVocabulary = async (dispatch: Dispatch, _: {}, { vocabularyService }: ServiceRepository) => { const vocabulary = await vocabularyService.getVocabulary(); - dispatch(propertiesActions.SET_PROPERTY({ key: VOCABULARY_PROPERTY_NAME, value: isVocabulary(vocabulary)