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 {
}
getConfigConeSearchEnabled() {
if (this.model.config.cone_search) {
if (this.model.config && this.model.config.cone_search) {
return this.model.config.cone_search.enabled;
} else {
return false;
......@@ -34,7 +34,7 @@ export class FormDatasetComponent {
}
getConfigColumnRa() {
if (this.model.config.cone_search) {
if (this.model.config && this.model.config.cone_search) {
return this.model.config.cone_search.column_ra;
} else {
return 0;
......@@ -42,7 +42,7 @@ export class FormDatasetComponent {
}
getConfigColumnDec() {
if (this.model.config.cone_search) {
if (this.model.config && this.model.config.cone_search) {
return this.model.config.cone_search.column_dec;
} else {
return 0;
......
Markdown is supported
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