Skip to content

Commit

Permalink
fixed wrong var name
Browse files Browse the repository at this point in the history
  • Loading branch information
ck-c8y committed Jan 24, 2025
1 parent b49c5f3 commit c705187
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions analytics-ui/src/repository/editor/editor-modal.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { Observable, Subject } from 'rxjs';
import { EditorComponent, loadMonacoEditor } from '@c8y/ngx-components/editor';
import { EplConfigService } from './epl-config.service';

let initialized Monaco = false;
let initializedMonaco = false;

@Component({
selector: 'a17t-name-extension-modal',
Expand Down Expand Up @@ -44,10 +44,10 @@ export class EditorModalComponent implements OnInit {
}

async ngAfterViewInit(): Promise<void> {
if (!initialized Monaco) {
if (!initializedMonaco) {
const monaco = await loadMonacoEditor();
if (monaco) {
initialized Monaco = true;
initializedMonaco = true;
monaco.languages.register(this.configService.getCustomLangExtensionPoint());
monaco.languages.setMonarchTokensProvider(this.configService.getLanguageName(), this.configService.getCustomLangTokenProviders());
monaco.languages.setLanguageConfiguration(this.configService.getLanguageName(), this.configService.getEPLLanguageConfig());
Expand Down

0 comments on commit c705187

Please sign in to comment.