Commit 8aa5420 1 parent 7736fe9 commit 8aa5420 Copy full SHA for 8aa5420
File tree 6 files changed +11
-20
lines changed
6 files changed +11
-20
lines changed Original file line number Diff line number Diff line change @@ -593,11 +593,11 @@ export default class AppContext {
593
593
context . setDataHarmonizers ( dhs ) ;
594
594
595
595
// COMMENTED OUT: WIP feature
596
- if ( ! ! context . oneToManyAppContext ) {
596
+ if ( context . oneToManyAppContext ) {
597
597
context . oneToManyAppContext . destroy ( ) ;
598
598
}
599
599
const appContext = buildAppContext ( schema ) ;
600
- context . oneToManyAppContext = setup1M ( appContext , dhs ) ; // returns an event manager
600
+ context . oneToManyAppContext = setup1M ( appContext , dhs ) ; // returns an event manager
601
601
602
602
return context ;
603
603
} ) ;
Original file line number Diff line number Diff line change @@ -24,10 +24,7 @@ import {
24
24
LocaleNotSupportedError ,
25
25
} from '../lib/utils/templates' ;
26
26
27
- import {
28
- findLocalesForLangcodes ,
29
- interface_translation ,
30
- } from './utils/i18n' ;
27
+ import { findLocalesForLangcodes , interface_translation } from './utils/i18n' ;
31
28
import i18next from 'i18next' ;
32
29
33
30
import template from './toolbar.html' ;
Original file line number Diff line number Diff line change @@ -2,8 +2,4 @@ export { default as Footer } from './Footer';
2
2
export { default as Toolbar } from './Toolbar' ;
3
3
export { default as DataHarmonizer } from './DataHarmonizer' ;
4
4
export { default as AppContext } from './AppContext' ;
5
- export {
6
- DATE_OBJECT ,
7
- JSON_SCHEMA_FORMAT ,
8
- INPUT_FORMAT ,
9
- } from './utils/fields' ;
5
+ export { DATE_OBJECT , JSON_SCHEMA_FORMAT , INPUT_FORMAT } from './utils/fields' ;
Original file line number Diff line number Diff line change @@ -5,10 +5,7 @@ import jqueryI18next from 'jquery-i18next';
5
5
6
6
import { flattenObject } from './objects' ;
7
7
import label_translations_file from '../../web/translations/translations.json' ;
8
- import {
9
- MULTIVALUED_DELIMITER ,
10
- formatMultivaluedValue ,
11
- } from './fields' ;
8
+ import { MULTIVALUED_DELIMITER , formatMultivaluedValue } from './fields' ;
12
9
import { renderContent } from './content' ;
13
10
14
11
export const interface_translation = transformStructFirstSpec (
Original file line number Diff line number Diff line change @@ -25,7 +25,11 @@ export async function templatePathForSchemaURI(schemaURI) {
25
25
// for now, this is just the manifest
26
26
for ( let i = 0 ; i < template_manifest . children . length ; i ++ ) {
27
27
const template = template_manifest . children [ i ] ;
28
- if ( typeof template . children !== 'undefined' && template . children . length > 0 && template . children . some ( c => c . name . includes ( "schema.json" ) ) ) {
28
+ if (
29
+ typeof template . children !== 'undefined' &&
30
+ template . children . length > 0 &&
31
+ template . children . some ( ( c ) => c . name . includes ( 'schema.json' ) )
32
+ ) {
29
33
const schema = await getSchema ( template . name ) ;
30
34
if ( schema . id === schemaURI ) {
31
35
const templatePath = `${ template . path . split ( '/' ) . slice ( - 1 ) } /${ schemaURI
Original file line number Diff line number Diff line change 1
- import {
2
- formatMultivaluedValue ,
3
- parseMultivaluedValue ,
4
- } from './fields' ;
1
+ import { formatMultivaluedValue , parseMultivaluedValue } from './fields' ;
5
2
6
3
/**
7
4
* Test cellVal against "DataHarmonizer provenance: vX.Y.Z" pattern and if it
You can’t perform that action at this time.
0 commit comments