From 648211a31b232c8bb688beb2170c55edc1d51f50 Mon Sep 17 00:00:00 2001 From: xsalonx Date: Mon, 16 Sep 2024 14:46:56 +0200 Subject: [PATCH] fix --- .../RunPerDataPass/RunsPerDataPassOverviewPage.js | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/lib/public/views/Runs/RunPerDataPass/RunsPerDataPassOverviewPage.js b/lib/public/views/Runs/RunPerDataPass/RunsPerDataPassOverviewPage.js index 0c6e920f7d..aa39245899 100644 --- a/lib/public/views/Runs/RunPerDataPass/RunsPerDataPassOverviewPage.js +++ b/lib/public/views/Runs/RunPerDataPass/RunsPerDataPassOverviewPage.js @@ -36,6 +36,7 @@ import { PdpBeamType } from '../../../domain/enums/PdpBeamType.js'; import { SkimmingStage } from '../../../domain/enums/SkimmingStage.js'; import { badge } from '../../../components/common/badge.js'; import { Color } from '../../../components/common/colors.js'; +import { mergeRemoteData } from '../../../utilities/mergeRemoteData.js'; const TABLEROW_HEIGHT = 59; // Estimate of the navbar and pagination elements height total; Needs to be updated in case of changes; @@ -235,18 +236,9 @@ export const RunsPerDataPassOverviewPage = ({ Other: () => null, }), h('.flex-column.w-100', [ - remoteGaqSummary.match({ Failure: (errors) => errorAlert(errors), Other: () => null }), table( - remoteGaqSummary.match({ - Success: () => remoteQcSummary.match({ - Success: () => remoteDetectors.match({ - Success: () => remoteRuns, - Other: () => remoteDetectors, - }), - Other: () => remoteQcSummary, - }), - Other: () => remoteGaqSummary, - }), + mergeRemoteData([remoteRuns, remoteDetectors, remoteGaqSummary, remoteQcSummary]) + .apply({ Success: (remoteDataList) => remoteDataList[0] }), activeColumns, { classes: getRowClasses }, {