Skip to content

Commit

Permalink
fix missing collection
Browse files Browse the repository at this point in the history
  • Loading branch information
imolorhe committed Jun 26, 2024
1 parent 908b3c0 commit 9190032
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export class AddCollectionQueryDialogComponent implements OnChanges {
this.createCollectionAndSaveQueryToCollectionChange.emit({
queryName: this.newCollectionQueryTitle,
collectionName: this.newCollectionTitle,
parentCollectionId: this.newCollectionParentCollectionId,
parentCollectionId: this.newCollectionParentCollectionId === '0' ? '' : this.newCollectionParentCollectionId,
workspaceId: this.workspaceId,
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,7 @@ export class QueryCollectionService {
}

const parentCollectionId = this.getParentCollectionId(collection);
if (!parentCollectionId) {
if (!parentCollectionId || parentCollectionId === '0') {
roots.push(collectionTree);
return;
}
Expand Down

0 comments on commit 9190032

Please sign in to comment.