Skip to content

Commit eba6930

Browse files
[DSC-1864] remove sections embedding
1 parent 86a43fe commit eba6930

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/app/core/submission/submission-rest.service.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ describe('SubmissionRestService test suite', () => {
2626
const resourceEndpoint = 'workspaceitems';
2727
const resourceScope = '260';
2828
const body = { test: new FormFieldMetadataValueObject('test') };
29-
const resourceHref = resourceEndpointURL + '/' + resourceEndpoint + '/' + resourceScope + '?embed=item,sections,collection&projection=full';
29+
const resourceHref = resourceEndpointURL + '/' + resourceEndpoint + '/' + resourceScope + '?embed=item,collection&projection=full';
3030
const timestampResponse = 1545994811992;
3131

3232
function initTestService() {

src/app/core/submission/submission-rest.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export class SubmissionRestService {
7373
*/
7474
protected getEndpointByIDHref(endpoint, resourceID, collectionId?: string, projections: string[] = []): string {
7575
let url = isNotEmpty(resourceID) ? `${endpoint}/${resourceID}` : `${endpoint}`;
76-
url = new URLCombiner(url, '?embed=item,sections,collection&projection=full').toString();
76+
url = new URLCombiner(url, '?embed=item,collection&projection=full').toString();
7777

7878
projections.forEach((projection) => {
7979
url = new URLCombiner(url, '&projection=' + projection).toString();

0 commit comments

Comments
 (0)