Skip to content

Commit 288856c

Browse files
committed
Fix restore of groups/categories with docs
Ref: #2801
1 parent a7bff48 commit 288856c

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ title: Changelog
44

55
## Unreleased
66

7+
### Bug Fixes
8+
9+
- Fix restoration of groups/categories including documents, #2801.
10+
711
## v0.27.4 (2024-12-09)
812

913
### Features

src/lib/models/ReflectionCategory.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export class ReflectionCategory {
7676
const child = project.getReflectionById(
7777
de.oldIdToNewId[childId] ?? -1,
7878
);
79-
if (child?.isDeclaration()) {
79+
if (child?.isDeclaration() || child?.isDocument()) {
8080
this.children.push(child);
8181
}
8282
}

src/lib/models/ReflectionGroup.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ export class ReflectionGroup {
9696
const child = project.getReflectionById(
9797
de.oldIdToNewId[childId] ?? -1,
9898
);
99-
if (child?.isDeclaration()) {
99+
if (child?.isDeclaration() || child?.isDocument()) {
100100
this.children.push(child);
101101
}
102102
}

0 commit comments

Comments
 (0)