diff --git a/packages/hydrooj/src/handler/manage.ts b/packages/hydrooj/src/handler/manage.ts index 6a9c2a9c9..fcc37d615 100644 --- a/packages/hydrooj/src/handler/manage.ts +++ b/packages/hydrooj/src/handler/manage.ts @@ -148,7 +148,7 @@ class SystemSettingHandler extends SystemHandler { const raw = system.get('_') || ''; let config = yaml.load(raw); const valid = validator(config); - if (!(raw?.trim() && valid)) { + if (!(raw.trim() && valid)) { const data = {}; for (const key in schema.properties) { data[key] = {}; diff --git a/packages/ui-default/components/editor/index.ts b/packages/ui-default/components/editor/index.ts index c7a61f5e8..edd58d57b 100644 --- a/packages/ui-default/components/editor/index.ts +++ b/packages/ui-default/components/editor/index.ts @@ -1,5 +1,4 @@ import _ from 'lodash'; -import { Range } from 'monaco-editor'; import DOMAttachedObject from 'vj/components/DOMAttachedObject'; export const config = {