Skip to content

Commit

Permalink
🐛 fixing update definition action (#645)
Browse files Browse the repository at this point in the history
  • Loading branch information
xoscar authored Jun 2, 2022
1 parent 427cd36 commit f192691
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions web/src/constants/Operator.constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ export const CompareOperatorSymbolMap: Record<CompareOperator, TCompareOperatorS

export const CompareOperatorSymbolNameMap: Record<TCompareOperatorSymbol, TCompareOperatorName> = {
'=': 'equals',
'<': 'not equals',
'>': 'less than',
'!=': 'greater than',
'!=': 'not equals',
'<': 'less than',
'>': 'greater than',
'>=': 'greater or equals',
'<=': 'less or equals',
contains: 'contains',
Expand Down
2 changes: 1 addition & 1 deletion web/src/redux/slices/TestDefinition.slice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ const testDefinitionSlice = createSlice<
},
updateDefinition(state, {payload: {definition, selector}}) {
state.definitionList = state.definitionList.map(def => {
if (def.originalSelector === selector)
if (def.selector === selector)
return {
...definition,
originalSelector: def.originalSelector,
Expand Down

0 comments on commit f192691

Please sign in to comment.