19700: Use correct type and check for process raw input data
[arvados-workbench2.git] / src / store / process-panel / process-panel-reducer.ts
index 48cdb39f8402ce1f1e63ca57d5fea3a1c3517a3b..45ca10ca29bf33d211ea1878de60e210014fde6a 100644 (file)
@@ -32,7 +32,7 @@ export const processPanelReducer = (state = initialState, action: ProcessPanelAc
         SET_INPUT_RAW: inputRaw => {
             // Since mounts can disappear and reappear, only set inputs
             //   if current state is null or new inputs has content
-            if (state.inputRaw === null || (inputRaw && inputRaw.length)) {
+            if (state.inputRaw === null || (inputRaw && Object.keys(inputRaw).length)) {
                 return { ...state, inputRaw };
             } else {
                 return state;