entity version fix
This commit is contained in:
		
							parent
							
								
									08b9c4ed1b
								
							
						
					
					
						commit
						cc89f5fbca
					
				@ -122,7 +122,7 @@ export class CalculatedFieldDialogComponent extends DialogComponent<CalculatedFi
 | 
			
		||||
 | 
			
		||||
  add(): void {
 | 
			
		||||
    if (this.fieldFormGroup.valid) {
 | 
			
		||||
      this.calculatedFieldsService.saveCalculatedField({ entityId: this.data.entityId, id: this.data.value?.id,  ...this.fromGroupValue})
 | 
			
		||||
      this.calculatedFieldsService.saveCalculatedField({ entityId: this.data.entityId, ...(this.data.value ?? {}),  ...this.fromGroupValue})
 | 
			
		||||
        .pipe(takeUntilDestroyed(this.destroyRef))
 | 
			
		||||
        .subscribe(calculatedField => this.dialogRef.close(calculatedField));
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user