From 204ebb162f8d003e6962e555ba376842cc4df13d Mon Sep 17 00:00:00 2001 From: Stephen Smith Date: Mon, 24 Oct 2022 12:14:53 -0400 Subject: [PATCH] 16073: Fix compiler warnings Arvados-DCO-1.1-Signed-off-by: Stephen Smith --- src/views/process-panel/process-panel-root.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/views/process-panel/process-panel-root.tsx b/src/views/process-panel/process-panel-root.tsx index 5dd7c6d0..6217181c 100644 --- a/src/views/process-panel/process-panel-root.tsx +++ b/src/views/process-panel/process-panel-root.tsx @@ -109,7 +109,7 @@ export const ProcessPanelRoot = withStyles(styles)( } setProcessedOutputs(formatOutputData(outputDefinitions, outputDetails.rawOutputs, outputDetails.pdh, auth)); } - }, [outputDetails, auth, containerRequest]); + }, [outputDetails, auth, containerRequest, outputDefinitions]); // Fetch raw inputs and format into ProcessIOParameter[] // Can be sync because inputs are either already in containerRequest mounts or props @@ -117,15 +117,15 @@ export const ProcessPanelRoot = withStyles(styles)( if (containerRequest) { // Since mounts can disappear and reappear, only set inputs if raw / processed inputs is undefined or new inputs has content const newRawInputs = getRawInputs(containerRequest); - if (rawInputs === undefined || newRawInputs && newRawInputs.length) { + if (rawInputs === undefined || (newRawInputs && newRawInputs.length)) { setInputs(newRawInputs); } const newInputs = getInputs(containerRequest); - if (processedInputs === undefined || newInputs && newInputs.length) { + if (processedInputs === undefined || (newInputs && newInputs.length)) { setProcessedInputs(formatInputData(newInputs, auth)); } } - }, [requestUuid, auth, containerRequest]); + }, [requestUuid, auth, containerRequest, processedInputs, rawInputs]); return process ? -- 2.30.2