Skip to content
Snippets Groups Projects
Commit ae538bc2 authored by Tifenn Guillas's avatar Tifenn Guillas
Browse files

Fix bug init cone search by url => DONE

parent d3d69f2f
No related branches found
No related tags found
2 merge requests!147Develop,!137Resolve "[Module Multiple] : ajouter le nouveau module"
This commit is part of merge request !137. Comments created here will be created in the context of that merge request.
......@@ -24,7 +24,7 @@ export class ConeSearchComponent {
unit = 'degree';
ra: number;
dec: number;
radius: number;
radius: number = 0;
constructor(private store: Store<StoreState>) {
this.resolverWip = store.select(coneSearchSelector.getResolverWip);
......
......@@ -74,7 +74,7 @@ export class ConeSearchEffects {
let decForm = new FormControl('', [Validators.required, nanValidator, rangeValidator(-90, 90)]);
decForm.setValue(addConeSearchFromUrlAction.payload.dec);
let radiusForm = new FormControl('', [Validators.required, nanValidator, rangeValidator(0, 150)]);
radiusForm.setValue(addConeSearchFromUrlAction.payload.dec);
radiusForm.setValue(addConeSearchFromUrlAction.payload.radius);
if (!raForm.errors && !decForm.errors && !radiusForm.errors) {
const actions: Action[] = [];
actions.push(new coneSearchActions.AddConeSearchAction(addConeSearchFromUrlAction.payload));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment