From 548e9d9a35e60025beff87f6fe10b2c00ecda799 Mon Sep 17 00:00:00 2001 From: GermanBluefox Date: Sat, 21 Dec 2024 20:37:40 +0000 Subject: [PATCH] Fix build --- packages/admin/src-admin/src/components/FileEditor.tsx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/admin/src-admin/src/components/FileEditor.tsx b/packages/admin/src-admin/src/components/FileEditor.tsx index 515e09c54..466a575c1 100644 --- a/packages/admin/src-admin/src/components/FileEditor.tsx +++ b/packages/admin/src-admin/src/components/FileEditor.tsx @@ -10,10 +10,8 @@ import { withWidth, FileViewerClass, type FileViewerProps } from '@iobroker/adap import Editor from './Editor'; -const modelist = ace.require - ? ace.require('ace/ext/modelist') - : // @ts-expect-error try this too - ace.acequire('ace/ext/modelist'); +// @ts-expect-error try this too +const modelist = ace.require ? ace.require('ace/ext/modelist') : ace.acequire('ace/ext/modelist'); class FileEditorClass extends FileViewerClass { constructor(props: FileViewerProps) {