Skip to content

Commit

Permalink
Fix duplicate programs on context
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerrit0 committed Feb 9, 2024
1 parent f5f31b0 commit b6c5801
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
- A class which implements itself will no longer cause a crash when rendering HTML, #2495.
- Variable functions which have construct signatures will no longer be converted as functions, ignoring the construct signatures.
- 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.
- `Context.programs` will no longer contain duplicates, #2498.

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

Expand Down
4 changes: 2 additions & 2 deletions src/lib/converter/converter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
import { Context } from "./context";
import { ConverterComponent } from "./components";
import { Component, ChildableComponent } from "../utils/component";
import { Option, MinimalSourceFile, readFile } from "../utils";
import { Option, MinimalSourceFile, readFile, unique } from "../utils";
import { convertType } from "./types";
import { ConverterEvents } from "./converter-events";
import { convertSymbol } from "./symbols";
Expand Down Expand Up @@ -222,7 +222,7 @@ export class Converter extends ChildableComponent<
convert(
entryPoints: readonly DocumentationEntryPoint[],
): ProjectReflection {
const programs = entryPoints.map((e) => e.program);
const programs = unique(entryPoints.map((e) => e.program));
this.externalPatternCache = void 0;

const project = new ProjectReflection(
Expand Down

0 comments on commit b6c5801

Please sign in to comment.