Skip to content

Commit

Permalink
remove useless error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
bouttier authored and jacquesfize committed Mar 8, 2024
1 parent cb2f09c commit c1f606f
Showing 1 changed file with 8 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -151,21 +151,16 @@ export class DatalistComponent extends GenericFormComponent implements OnInit {

getData() {
if (!this.values && this.api) {
this._dfs.getDataList(this.api, this.application, this.params).subscribe(
(data) => {
let values = data;
if (this.dataPath) {
const paths = this.dataPath.split('/');
for (const path of paths) {
values = values[path];
}
this._dfs.getDataList(this.api, this.application, this.params).subscribe((data) => {
let values = data;
if (this.dataPath) {
const paths = this.dataPath.split('/');
for (const path of paths) {
values = values[path];
}
this.initValues(values);
},
(error) => {
this._commonService.regularToaster('error', error.message);
}
);
this.initValues(values);
});
} else if (this.values) {
this.initValues(this.values);
}
Expand Down

0 comments on commit c1f606f

Please sign in to comment.