mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-15 05:53:03 +00:00
fix test and lint issues after merge
This commit is contained in:
@@ -96,6 +96,8 @@ describe('ResourcePolicyService', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
responseCacheEntry = new RequestEntry();
|
responseCacheEntry = new RequestEntry();
|
||||||
|
responseCacheEntry.request = { href: 'https://rest.api/' } as any;
|
||||||
|
responseCacheEntry.completed = true;
|
||||||
responseCacheEntry.response = new RestResponse(true, 200, 'Success');
|
responseCacheEntry.response = new RestResponse(true, 200, 'Success');
|
||||||
|
|
||||||
requestService = jasmine.createSpyObj('requestService', {
|
requestService = jasmine.createSpyObj('requestService', {
|
||||||
|
@@ -128,7 +128,6 @@ export class SubmissionSectionformComponent extends SectionModelComponent {
|
|||||||
* @param {SubmissionObjectDataService} submissionObjectService
|
* @param {SubmissionObjectDataService} submissionObjectService
|
||||||
* @param {ObjectCacheService} objectCache
|
* @param {ObjectCacheService} objectCache
|
||||||
* @param {RequestService} requestService
|
* @param {RequestService} requestService
|
||||||
* @param {GlobalConfig} EnvConfig
|
|
||||||
* @param {string} injectedCollectionId
|
* @param {string} injectedCollectionId
|
||||||
* @param {SectionDataObject} injectedSectionData
|
* @param {SectionDataObject} injectedSectionData
|
||||||
* @param {string} injectedSubmissionId
|
* @param {string} injectedSubmissionId
|
||||||
@@ -350,7 +349,7 @@ export class SubmissionSectionformComponent extends SectionModelComponent {
|
|||||||
const metadata = this.formOperationsService.getFieldPathSegmentedFromChangeEvent(event);
|
const metadata = this.formOperationsService.getFieldPathSegmentedFromChangeEvent(event);
|
||||||
const value = this.formOperationsService.getFieldValueFromChangeEvent(event);
|
const value = this.formOperationsService.getFieldValueFromChangeEvent(event);
|
||||||
|
|
||||||
if (environment.submission.autosave.metadata.indexOf(metadata) !== -1 && isNotEmpty(value)) {
|
if (environment.submission.autosave.metadata.indexOf(metadata) !== -1 && isNotEmpty(value)) {
|
||||||
this.submissionService.dispatchSave(this.submissionId);
|
this.submissionService.dispatchSave(this.submissionId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user