Skip to content
Snippets Groups Projects
Commit 346bff84 authored by Sandro Weber's avatar Sandro Weber
Browse files

small additional fix in case of corrupted experiment storage and missing configs

parent 8ebb5687
No related branches found
No related tags found
No related merge requests found
...@@ -69,6 +69,8 @@ class ExperimentStorageService extends HttpService { ...@@ -69,6 +69,8 @@ class ExperimentStorageService extends HttpService {
async getExperiments(forceUpdate = false) { async getExperiments(forceUpdate = false) {
if (!this.experiments || forceUpdate) { if (!this.experiments || forceUpdate) {
let experimentList = await (await this.httpRequestGET(storageExperimentsURL)).json(); let experimentList = await (await this.httpRequestGET(storageExperimentsURL)).json();
// filter out experiments with incomplete configuration (probably storage corruption)
experimentList = experimentList.filter(experiment => experiment.configuration.experimentFile);
this.sortExperiments(experimentList); this.sortExperiments(experimentList);
await this.fillExperimentDetails(experimentList); await this.fillExperimentDetails(experimentList);
this.experiments = experimentList; this.experiments = experimentList;
......
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