Skip to content

Commit 6286363

Browse files
committed
hotfix: fix compiler error for SolutionComponents
1 parent f486f6e commit 6286363

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Generator/WebsiteBuilder.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ internal void AddData()
8282
{
8383
sb.AppendLine($" {JsonConvert.SerializeObject(collection)},");
8484
}
85-
sb.AppendLine("]");
85+
sb.AppendLine("] as const;");
8686

8787
// GLOBAL OPTION SETS
8888
sb.AppendLine("");

Website/stubs/Data.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,6 @@ export let Groups: GroupType[] = [
115115

116116
export let SolutionWarnings: SolutionWarningType[] = [];
117117

118-
export let SolutionComponents: SolutionComponentCollectionType[] = [];
118+
export let SolutionComponents: SolutionComponentCollectionType[] = [] as const;
119119

120120
export const GlobalOptionSets: Record<string, { Name: string; DisplayName: string; Usages: { EntitySchemaName: string; EntityDisplayName: string; AttributeSchemaName: string; AttributeDisplayName: string }[] }> = {};

0 commit comments

Comments
 (0)