Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
GermanBluefox committed Dec 21, 2024
1 parent 2d4ff28 commit 548e9d9
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/admin/src-admin/src/components/FileEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 548e9d9

Please sign in to comment.