From 62863638c3603e837fcb71de27bde332eea0aa02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kaare=20B=C3=B8rsting?= Date: Mon, 26 Jan 2026 15:45:48 +0100 Subject: [PATCH] hotfix: fix compiler error for SolutionComponents --- Generator/WebsiteBuilder.cs | 2 +- Website/stubs/Data.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Generator/WebsiteBuilder.cs b/Generator/WebsiteBuilder.cs index e5a3caf..f443ec7 100644 --- a/Generator/WebsiteBuilder.cs +++ b/Generator/WebsiteBuilder.cs @@ -82,7 +82,7 @@ internal void AddData() { sb.AppendLine($" {JsonConvert.SerializeObject(collection)},"); } - sb.AppendLine("]"); + sb.AppendLine("] as const;"); // GLOBAL OPTION SETS sb.AppendLine(""); diff --git a/Website/stubs/Data.ts b/Website/stubs/Data.ts index 92f03f0..8473d0c 100644 --- a/Website/stubs/Data.ts +++ b/Website/stubs/Data.ts @@ -115,6 +115,6 @@ export let Groups: GroupType[] = [ export let SolutionWarnings: SolutionWarningType[] = []; -export let SolutionComponents: SolutionComponentCollectionType[] = []; +export let SolutionComponents: SolutionComponentCollectionType[] = [] as const; export const GlobalOptionSets: Record = {}; \ No newline at end of file