inputRaw: null,
inputParams: null,
outputRaw: null,
+ nodeInfo: null,
outputDefinitions: [],
outputParams: null,
};
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;
SET_OUTPUT_RAW: outputRaw => {
return { ...state, outputRaw };
},
+ SET_NODE_INFO: ({ nodeInfo }) => {
+ return { ...state, nodeInfo };
+ },
SET_OUTPUT_DEFINITIONS: outputDefinitions => {
// Set output definitions is only additive to avoid clearing when mounts go temporarily missing
if (outputDefinitions.length) {