import { getIOParamDisplayValue, ProcessIOParameter } from "views/process-panel/process-io-card";
import { OutputDetails, NodeInstanceType, NodeInfo } from "./process-panel";
import { AuthState } from "store/auth/auth-reducer";
-import { CommonService } from "services/common-service/common-service";
-import { camelCase } from "lodash";
export const processPanelActions = unionize({
RESET_PROCESS_PANEL: ofType<{}>(),
return;
};
try {
- const propsOutputs = getRawOutputs(containerRequest);
const filesPromise = services.collectionService.files(containerRequest.logUuid);
const collectionPromise = services.collectionService.get(containerRequest.logUuid);
- const [files, collection] = await Promise.all([filesPromise, collectionPromise]);
+ const [files] = await Promise.all([filesPromise, collectionPromise]);
// Fetch node.json from keep
const nodeFile = files.find((file) => file.name === 'node.json') as CollectionFile | undefined;
let nodeData = nodeFile ? await services.collectionService.getFileContents(nodeFile) : undefined;
if (nodeData && (nodeData = JSON.parse(nodeData))) {
dispatch<ProcessPanelAction>(processPanelActions.SET_NODE_INFO({
- nodeInfo: CommonService.mapKeys(camelCase)(nodeData) as NodeInstanceType
+ nodeInfo: nodeData as NodeInstanceType
}));
} else {
dispatch<ProcessPanelAction>(processPanelActions.SET_NODE_INFO(noLog));