Skip to content

Commit

Permalink
fix: unecessary code remove
Browse files Browse the repository at this point in the history
  • Loading branch information
kanikabansal-juspay committed Nov 14, 2024
1 parent c7eeba5 commit 5892ced
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion src/components/Filter.res
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ module AutoSubmitter = {
let onKeyDown = ev => {
let keyCode = ev->ReactEvent.Keyboard.keyCode
if keyCode === 13 && submitInputOnEnter {
Js.log("inside keydown useffect")
form.submit()->ignore
}
}
Expand Down
4 changes: 1 addition & 3 deletions src/screens/Order/OrderUIUtils.res
Original file line number Diff line number Diff line change
Expand Up @@ -277,14 +277,13 @@ let initialFilters = (json, filtervalues) => {
open LogicUtils

let connectorFilter = filtervalues->getArrayFromDict("connector", [])->getStrArrayFromJsonArray
let {removeKeys, filterKeys, setfilterKeys} = React.useContext(FilterContext.filterContext)
let {removeKeys} = React.useContext(FilterContext.filterContext)
let filterDict = json->getDictFromJsonObject

let filterArr = filterDict->itemToObjMapper
let arr = filterDict->Dict.keysToArray
let onDeleteClick = name => {
[name]->removeKeys
setfilterKeys(_ => filterKeys->Array.filter(item => item !== name))
}
if connectorFilter->Array.length !== 0 {
arr->Array.push("connector_label")
Expand Down Expand Up @@ -324,7 +323,6 @@ let initialFilters = (json, filtervalues) => {

let name = switch key->getFilterTypeFromString {
| #connector_label => "merchant_connector_id"
| #customer_id => "customer_id"
| _ => key
}
let customInput = switch key->getFilterTypeFromString {
Expand Down

0 comments on commit 5892ced

Please sign in to comment.