Commit 93527aea authored by François Agneray's avatar François Agneray
Browse files

Merge branch 'develop' into 'master'

Fixed bug: dataset form component (config field)

See merge request !22
parents 25d91dc6 c9c6daff
...@@ -26,7 +26,7 @@ export class FormDatasetComponent { ...@@ -26,7 +26,7 @@ export class FormDatasetComponent {
} }
getConfigConeSearchEnabled() { getConfigConeSearchEnabled() {
if (this.model.config.cone_search) { if (this.model.config && this.model.config.cone_search) {
return this.model.config.cone_search.enabled; return this.model.config.cone_search.enabled;
} else { } else {
return false; return false;
...@@ -34,7 +34,7 @@ export class FormDatasetComponent { ...@@ -34,7 +34,7 @@ export class FormDatasetComponent {
} }
getConfigColumnRa() { getConfigColumnRa() {
if (this.model.config.cone_search) { if (this.model.config && this.model.config.cone_search) {
return this.model.config.cone_search.column_ra; return this.model.config.cone_search.column_ra;
} else { } else {
return 0; return 0;
...@@ -42,7 +42,7 @@ export class FormDatasetComponent { ...@@ -42,7 +42,7 @@ export class FormDatasetComponent {
} }
getConfigColumnDec() { getConfigColumnDec() {
if (this.model.config.cone_search) { if (this.model.config && this.model.config.cone_search) {
return this.model.config.cone_search.column_dec; return this.model.config.cone_search.column_dec;
} else { } else {
return 0; return 0;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment