= [];
+
+ ng.get('vocabularies').getAllActiveVocabularies().then((vocabularies) => {
+ const categoriesMissing = vocabularies.find(({_id}) => _id === 'categories') != null;
+
+ if (categoriesMissing) {
+ issues.push(
+ (
+ <>
+ {gettext('Vocabulary with ID "categories" is required.')}
+ {gettext('Add it via Settings > Metadata')}
+ >
+ ),
+ );
+ }
+
+ if (issues.length > 0) {
+ showModal(({closeModal}) => (
+
+ {issues[0]}
+
+ ));
+ }
+ });
+}