Skip to content

Commit

Permalink
fix(resource): add if condition (DSP-1655) (#448)
Browse files Browse the repository at this point in the history
  • Loading branch information
kilchenmann committed May 25, 2021
1 parent 739beba commit 656da04
Showing 1 changed file with 4 additions and 2 deletions.
Expand Up @@ -106,8 +106,10 @@ export class ResourcePropertiesComponent implements OnInit, OnDestroy {
// subscribe to the ValueOperationEventService and listen for an event to be emitted
this.valueOperationEventSubscriptions.push(this._valueOperationEventService.on(
Events.ValueAdded, (newValue: AddedEventValue) => {
this.addValueToResource(newValue.addedValue);
this.hideAddValueForm();
if (newValue) {
this.addValueToResource(newValue.addedValue);
this.hideAddValueForm();
}
}));

this.valueOperationEventSubscriptions.push(this._valueOperationEventService.on(
Expand Down

0 comments on commit 656da04

Please sign in to comment.