Skip to content

Commit

Permalink
Fixed endless spinner on content filter (#7243)
Browse files Browse the repository at this point in the history
  • Loading branch information
alansemenov committed Mar 1, 2024
1 parent be928c2 commit 3a00612
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -289,10 +289,16 @@ export class ContentTreeGrid
private processContentQueryResponse(node: TreeNode<ContentSummaryAndCompareStatus>,
data: ContentQueryResult<ContentSummary, ContentSummaryJson>,
from: number): Q.Promise<ContentSummaryAndCompareStatus[]> {

return this.contentFetcher
.updateReadonlyAndCompareStatus(data.getContents())
.then((contents: ContentSummaryAndCompareStatus[]) => {
.then((processedContents: ContentSummaryAndCompareStatus[]) => {

const contents: ContentSummaryAndCompareStatus[] =
node.getChildren()
.map((el: TreeNode<ContentSummaryAndCompareStatus>) => el.getData())
.slice(0, from)
.concat(processedContents);

const meta: ResultMetadata = data.getMetadata();
if (this.isEmptyNodeNeeded(meta, from)) {
contents.push(new ContentSummaryAndCompareStatus());
Expand Down

0 comments on commit 3a00612

Please sign in to comment.