File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
packages/fe-mockserver-core/src/data Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ ' @sap-ux/fe-mockserver-core ' : patch
3+ ---
4+
5+ We now properly identify the entityset in case of parametrized query in v2
Original file line number Diff line number Diff line change @@ -674,7 +674,12 @@ export class DataAccess implements DataAccessInterface {
674674 // Fake containment for result set
675675 targetContainedEntityType = navPropDetail . targetType ;
676676 targetContainedData = innerData [ queryPathPart . path ] ;
677- currentEntitySet = undefined ;
677+ if ( this . metadata . getVersion ( ) === '2.0' ) {
678+ // In V2 there might be a target entityset as containment doesn't exist
679+ currentEntitySet = currentEntitySet ?. navigationPropertyBinding [ navPropDetail . name ] ;
680+ } else {
681+ currentEntitySet = undefined ;
682+ }
678683 currentEntityType = targetContainedEntityType ;
679684 if ( hasOnlyDraftKeyOrNoKeys ) {
680685 currentKeys = { } ;
You can’t perform that action at this time.
0 commit comments