Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

Commit

Permalink
remove partial update
Browse files Browse the repository at this point in the history
  • Loading branch information
cglewis committed Apr 16, 2020
1 parent 34c8756 commit 9cd1cc2
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions ui/src/domain/data.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ const defaultState = {
const setSessionId = createAction("SET_SESSION_ID");
const setResults = createAction("SET_RESULTS");
const setToolStatus = createAction("SET_TOOL_STATUS");
const setTools = createAction("SET_TOOLS");

// REDUCERS
const reducer = handleActions(
Expand All @@ -30,10 +29,6 @@ const reducer = handleActions(
state.results.rows = resultRows
return { ...state};
},
[setTools]: (state, { payload }) => {
state.tools = payload;
return { ...state};
},
[setToolStatus]: (state, { payload }) => {
if(!state.toolStatus) state.toolStatus ={};

Expand Down Expand Up @@ -70,10 +65,6 @@ const _getToolStatuses = (toolStatuses, toolId) => {
return status;
}

const _getTools = (results) => {
return results || {};
}

// SELECTORS
const getResults = (state) => {
return _getResults(state.data.results);
Expand All @@ -84,10 +75,7 @@ const getToolStatus = (state, toolId) => {
const getToolStatuses = (state) => {
return _getToolStatuses(state.data.toolStatus || {}, null)
}
const getTools = (state) => {
return _getTools(state.data.tools || [], null)
}

export default reducer;

export { setSessionId, setResults, getTools, getResults, setToolStatus, setTools, getToolStatus, getToolStatuses }
export { setSessionId, setResults, getResults, setToolStatus, getToolStatus, getToolStatuses }

0 comments on commit 9cd1cc2

Please sign in to comment.