We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5579875 commit 59316ecCopy full SHA for 59316ec
srv/src/main/java/my/bookshop/handlers/CatalogServiceHandler.java
@@ -82,8 +82,14 @@ public void beforeReadBooks(CdsReadEventContext context) {
82
CqnSelect copy = CQL.copy(context.getCqn(), new Modifier() {
83
@Override
84
public List<CqnSelectListItem> items(List<CqnSelectListItem> items) {
85
- items.add(CQL.get("details"));
86
- items.add(CQL.get("stock"));
+ CqnSelectListItem details = CQL.get("details");
+ if (!items.contains(details)) {
87
+ items.add(details);
88
+ }
89
+ CqnSelectListItem stock = CQL.get("stock");
90
+ if (!items.contains(stock)) {
91
+ items.add(stock);
92
93
return items;
94
}
95
});
0 commit comments