From e74a7ddff658e1793340faaba9dc2ae3319a8e0e Mon Sep 17 00:00:00 2001 From: stevereis <stevereis93@gmail.com> Date: Tue, 7 Dec 2021 08:50:15 +0100 Subject: [PATCH] Fix : catch error when experiment list empty --- api/src/engine/connectors/exareme/main.connector.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/engine/connectors/exareme/main.connector.ts b/api/src/engine/connectors/exareme/main.connector.ts index 51e8eac..c36afbf 100644 --- a/api/src/engine/connectors/exareme/main.connector.ts +++ b/api/src/engine/connectors/exareme/main.connector.ts @@ -74,7 +74,7 @@ export default class ExaremeService implements IEngineService { return { ...resultAPI.data, - experiments: resultAPI.data.experiments.map(dataToExperiment), + experiments: resultAPI.data.experiments?.map(dataToExperiment), }; } -- GitLab