Skip to content

Commit

Permalink
Layers widget shows incorrect content status in parent project #8425
Browse files Browse the repository at this point in the history
  • Loading branch information
ashklianko authored and alansemenov committed Feb 26, 2025
1 parent 9cebead commit 3141124
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,11 @@ export class ContentSummaryAndCompareStatusFetcher {
.setRequestProjectName(projectName)
.setContentRootPath(this.contentRootPath)
.sendAndParse()
.then((content: Content) => this.fetchByContent(content));
.then((content: Content) => this.fetchByContent(content, projectName));
}

fetchByContent(content: Content): Q.Promise<ContentSummaryAndCompareStatus> {
return this.updateReadonlyAndCompareStatus([content])
fetchByContent(content: Content, projectName?: string): Q.Promise<ContentSummaryAndCompareStatus> {
return this.updateReadonlyAndCompareStatus([content], projectName)
.then((contents: ContentSummaryAndCompareStatus[]) => contents[0]);
}

Expand Down

0 comments on commit 3141124

Please sign in to comment.