Skip to content

Commit

Permalink
editor: fix location editor button validation
Browse files Browse the repository at this point in the history
* Add default return value to location async validator.
* Fix save button disabled in location editor.
* Closes rero#562.

Co-Authored-by: Lauren-D <[email protected]>
  • Loading branch information
lauren-d committed Oct 30, 2019
1 parent 0c3a26c commit ccbf8dc
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import { AbstractControl } from '@angular/forms';
import { JsonSchemaFormService } from 'angular6-json-schema-form';
import { of } from 'rxjs';
import { RecordsService } from '@app/records/records.service';
import {exitCodeFromResult} from '@angular/compiler-cli';

@Component({
selector: 'app-checkbox-is-online',
Expand Down Expand Up @@ -74,7 +75,8 @@ export class CheckboxIsOnlineComponent implements OnInit {
values.pid
);
} else {
return of();
// return observable that emits default value to async validator
return of(null);
}
}
}

0 comments on commit ccbf8dc

Please sign in to comment.