Skip to content

Commit 2ac6dff

Browse files
author
“Gabriel
committed
fixing delete describe block functionality in testCaseReducer
1 parent 2f2be5f commit 2ac6dff

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/context/reducers/accTestCaseReducer.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,11 +109,11 @@ export const accTestCaseReducer = (state, action) => {
109109
return {
110110
...state,
111111
describeBlocks: {
112-
byIds: newDescById,
112+
byId: newDescById,
113113
allIds: newDescAllIds,
114114
},
115115
itStatements: {
116-
byIds: newItById,
116+
byId: newItById,
117117
allIds: newItAllIds,
118118
},
119119
};
@@ -190,14 +190,14 @@ export const accTestCaseReducer = (state, action) => {
190190
}
191191
case actionTypes.UPDATE_ITSTATEMENT_TEXT: {
192192
const { itId, text } = action;
193-
const byIds = { ...itStatements.byId };
193+
const byId = { ...itStatements.byId };
194194
const block = { ...itStatements.byId[itId] };
195195
return {
196196
...state,
197197
itStatements: {
198198
...itStatements,
199199
byId: {
200-
...byIds,
200+
...byId,
201201
[itId]: {
202202
...block,
203203
text,

0 commit comments

Comments
 (0)