Skip to content

Commit

Permalink
Fix restore of groups/categories with docs
Browse files Browse the repository at this point in the history
Ref: #2801
  • Loading branch information
Gerrit0 committed Dec 12, 2024
1 parent a7bff48 commit 288856c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ title: Changelog

## Unreleased

### Bug Fixes

- Fix restoration of groups/categories including documents, #2801.

## v0.27.4 (2024-12-09)

### Features
Expand Down
2 changes: 1 addition & 1 deletion src/lib/models/ReflectionCategory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export class ReflectionCategory {
const child = project.getReflectionById(
de.oldIdToNewId[childId] ?? -1,
);
if (child?.isDeclaration()) {
if (child?.isDeclaration() || child?.isDocument()) {
this.children.push(child);
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/models/ReflectionGroup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export class ReflectionGroup {
const child = project.getReflectionById(
de.oldIdToNewId[childId] ?? -1,
);
if (child?.isDeclaration()) {
if (child?.isDeclaration() || child?.isDocument()) {
this.children.push(child);
}
}
Expand Down

0 comments on commit 288856c

Please sign in to comment.