Skip to content

Commit b6c5801

Browse files
committed
Fix duplicate programs on context
1 parent f5f31b0 commit b6c5801

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
- A class which implements itself will no longer cause a crash when rendering HTML, #2495.
1515
- Variable functions which have construct signatures will no longer be converted as functions, ignoring the construct signatures.
1616
- Fixed an issue where, if the index section was collapsed when loading the page, all content within it would be hidden until expanded, and a member visibility checkbox was changed.
17+
- `Context.programs` will no longer contain duplicates, #2498.
1718

1819
## v0.25.7 (2024-01-08)
1920

src/lib/converter/converter.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import {
1313
import { Context } from "./context";
1414
import { ConverterComponent } from "./components";
1515
import { Component, ChildableComponent } from "../utils/component";
16-
import { Option, MinimalSourceFile, readFile } from "../utils";
16+
import { Option, MinimalSourceFile, readFile, unique } from "../utils";
1717
import { convertType } from "./types";
1818
import { ConverterEvents } from "./converter-events";
1919
import { convertSymbol } from "./symbols";
@@ -222,7 +222,7 @@ export class Converter extends ChildableComponent<
222222
convert(
223223
entryPoints: readonly DocumentationEntryPoint[],
224224
): ProjectReflection {
225-
const programs = entryPoints.map((e) => e.program);
225+
const programs = unique(entryPoints.map((e) => e.program));
226226
this.externalPatternCache = void 0;
227227

228228
const project = new ProjectReflection(

0 commit comments

Comments
 (0)