Commit 21b7d91d authored by Aron Fiechter's avatar Aron Fiechter
Browse files

Add clearEntity action in voronoiSlice

parent 4dbef456
......@@ -23,7 +23,11 @@ const voronoiSlice = createSlice({
state.error = null;
},
getEntityResultFailure: (state, action) => {
state.entity = action.payload;
state.entity = null;
state.error = action.payload;
},
clearEntity: (state) => {
state.entity = null;
state.error = null;
},
},
......@@ -35,6 +39,7 @@ export const {
clearHoverSite,
getEntityResultSuccess,
getEntityResultFailure,
clearEntity,
} = voronoiSlice.actions;
// The function below is called a thunk and allows us to perform async logic. It
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment