[ACA-4627] Folder Rules - clicking on Manage Rules button does not fire the correct requests to the backend for inherited rules (#2822)

* ACA-4627 - changed from parent id to the current folder id

* ACA-4627 - unit test
This commit is contained in:
Nikita Maliarchuk
2022-11-30 21:18:08 +01:00
committed by GitHub
parent bfe14f8143
commit 5d330d3e36
2 changed files with 4 additions and 2 deletions

View File

@@ -186,7 +186,7 @@ export class FolderRuleSetsService {
}
return combineLatest(
this.currentFolder?.id === entry.owningFolder ? of(this.currentFolder) : this.getNodeInfo(entry.owningFolder || ''),
this.folderRulesService.getRules(entry.owningFolder || '', entry.id)
this.folderRulesService.getRules(this.currentFolder.id || '', entry.id)
).pipe(
map(([owningFolderNodeInfo, getRulesRes]) => ({
id: entry.id,