mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-17 23:13:04 +00:00
Fixed lint errors and add lint fix script
This commit is contained in:
@@ -109,7 +109,7 @@ export class SubmissionService {
|
||||
createSubmission(collectionId?: string): Observable<SubmissionObject> {
|
||||
return this.restService.postToEndpoint(this.workspaceLinkPath, {}, null, null, collectionId).pipe(
|
||||
map((workspaceitem: SubmissionObject[]) => workspaceitem[0] as SubmissionObject),
|
||||
catchError(() => observableOf({} as SubmissionObject)))
|
||||
catchError(() => observableOf({} as SubmissionObject)));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -216,7 +216,7 @@ export class SubmissionService {
|
||||
find((isPending: boolean) => !isPending)
|
||||
).subscribe(() => {
|
||||
this.store.dispatch(new SaveSubmissionFormAction(submissionId));
|
||||
})
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -540,7 +540,7 @@ export class SubmissionService {
|
||||
catchError((errorResponse: ErrorResponse) => {
|
||||
return createFailedRemoteDataObject$(null,
|
||||
new RemoteDataError(errorResponse.statusCode, errorResponse.statusText, errorResponse.errorMessage)
|
||||
)
|
||||
);
|
||||
})
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user