Skip to content

Commit 0d59ee0

Browse files
grasci-armbrondani
andauthored
[csolution-rpc] GetComponentsTree: fix packs filtering (#1247) (#2119)
Co-authored-by: Daniel Brondani <[email protected]>
1 parent 0ede9fd commit 0d59ee0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tools/projmgr/src/ProjMgrRpcServer.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,8 +287,10 @@ RpcArgs::CtRoot RpcHandler::GetComponentsTree(const string& context, const bool&
287287
auto& contextItem = GetContext(context);
288288
// use pack ID's from context
289289
set<string> packIds;
290-
for(auto [id, pack] : contextItem.packages) {
291-
packIds.insert(id);
290+
for(const auto& [_, packs] : contextItem.userInputToResolvedPackIdMap) {
291+
for (const auto& id : packs) {
292+
packIds.insert(id);
293+
}
292294
}
293295
packFilter.SetSelectedPackages(packIds);
294296
}

0 commit comments

Comments
 (0)