Skip to content
Permalink
Browse files
fix(resource): add if condition (DSP-1655) (#448)
  • Loading branch information
kilchenmann committed May 25, 2021
1 parent 739beba commit 656da04effaedb8cb62c8cd6ad31081a4763adc0
Showing with 4 additions and 2 deletions.
  1. +4 −2 src/app/workspace/resource/resource-properties/resource-properties.component.ts
@@ -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(

0 comments on commit 656da04

Please sign in to comment.