Skip to content
Snippets Groups Projects
Commit 2bfa4181 authored by OZGCloud's avatar OZGCloud
Browse files

OZG-5167: fix Nachricht update

parent 21ecba9a
No related branches found
No related tags found
No related merge requests found
...@@ -977,7 +977,7 @@ describe('BescheidService', () => { ...@@ -977,7 +977,7 @@ describe('BescheidService', () => {
it('should set create beschied document in progress', () => { it('should set create beschied document in progress', () => {
service.createBescheidDocument(); service.createBescheidDocument();
expect(service.createBescheidDocumentInProgress$.value.loading).toBeTruthy(); expect(service.createBescheidDocumentInProgress$.value).toEqual(commandStateResource);
}); });
it('should set upload beschied document in progress loading false', () => { it('should set upload beschied document in progress loading false', () => {
......
...@@ -429,9 +429,8 @@ export class BescheidService { ...@@ -429,9 +429,8 @@ export class BescheidService {
private handleCreateBescheidDocumentResponse( private handleCreateBescheidDocumentResponse(
commandStateResource: StateResource<CommandResource>, commandStateResource: StateResource<CommandResource>,
): void { ): void {
if (hasCommandError(commandStateResource.resource)) {
this.createBescheidDocumentInProgress$.next(commandStateResource); this.createBescheidDocumentInProgress$.next(commandStateResource);
} else { if (!hasCommandError(commandStateResource.resource)) {
const documentUri: ResourceUri = getEffectedResourceUrl(commandStateResource.resource); const documentUri: ResourceUri = getEffectedResourceUrl(commandStateResource.resource);
this.bescheidDocumentUri$.next(documentUri); this.bescheidDocumentUri$.next(documentUri);
this.loadBescheidDocumentByUri(documentUri); this.loadBescheidDocumentByUri(documentUri);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment