Commit df08320eea06c1617c3d3f1cfe33c244be05f068
1 parent
a3206358
UI: Fixed not load advanced settings in widget
Showing
2 changed files
with
3 additions
and
4 deletions
... | ... | @@ -20,16 +20,15 @@ import Button from '@material-ui/core/Button'; |
20 | 20 | import { JsonFormFieldProps, JsonFormFieldState } from '@shared/components/json-form/react/json-form.models'; |
21 | 21 | import { IEditorProps } from 'react-ace/src/types'; |
22 | 22 | import { mergeMap } from 'rxjs/operators'; |
23 | -import { loadAceDependencies } from '@shared/models/ace/ace.models'; | |
23 | +import { getAce } from '@shared/models/ace/ace.models'; | |
24 | 24 | import { from } from 'rxjs'; |
25 | 25 | import { Observable } from 'rxjs/internal/Observable'; |
26 | 26 | import { CircularProgress, IconButton } from '@material-ui/core'; |
27 | 27 | import { MouseEvent } from 'react'; |
28 | 28 | import { Help, HelpOutline } from '@material-ui/icons'; |
29 | -import { position } from 'html2canvas/dist/types/css/property-descriptors/position'; | |
30 | 29 | |
31 | 30 | const ReactAce = React.lazy(() => { |
32 | - return loadAceDependencies().pipe( | |
31 | + return getAce().pipe( | |
33 | 32 | mergeMap(() => { |
34 | 33 | return from(import('react-ace')); |
35 | 34 | }) | ... | ... |
... | ... | @@ -22,7 +22,7 @@ import { map, mergeMap, tap } from 'rxjs/operators'; |
22 | 22 | let aceDependenciesLoaded = false; |
23 | 23 | let aceModule: any; |
24 | 24 | |
25 | -export function loadAceDependencies(): Observable<any> { | |
25 | +function loadAceDependencies(): Observable<any> { | |
26 | 26 | if (aceDependenciesLoaded) { |
27 | 27 | return of(null); |
28 | 28 | } else { | ... | ... |