diff --git a/Models/ThemeConfig/TagRenderingConfig.ts b/Models/ThemeConfig/TagRenderingConfig.ts index bffe1e7f1f..1685344b10 100644 --- a/Models/ThemeConfig/TagRenderingConfig.ts +++ b/Models/ThemeConfig/TagRenderingConfig.ts @@ -14,8 +14,6 @@ import List from "../../UI/Base/List"; import {MappingConfigJson, QuestionableTagRenderingConfigJson} from "./Json/QuestionableTagRenderingConfigJson"; import {FixedUiElement} from "../../UI/Base/FixedUiElement"; import {Paragraph} from "../../UI/Base/Paragraph"; -import spec = Mocha.reporters.spec; -import SpecialVisualizations from "../../UI/SpecialVisualizations"; export interface Mapping { readonly if: TagsFilter, diff --git a/UI/Base/ChartJs.ts b/UI/Base/ChartJs.ts index a4250f4c43..0389ee754c 100644 --- a/UI/Base/ChartJs.ts +++ b/UI/Base/ChartJs.ts @@ -1,6 +1,6 @@ import BaseUIElement from "../BaseUIElement"; import {Chart, ChartConfiguration, ChartType, DefaultDataPoint, registerables} from 'chart.js'; -Chart.register(...registerables); +Chart?.register(...(registerables ?? [])); export default class ChartJs<