I am sending appropriate data it is showing error geo location sort

[
{"location": {
"distance": '10km',
"center": [
14,
0
],
"order": "asc"
}}
]

This is the data i am sending

error: TypeError: Cannot read properties of undefined (reading 'value')

Could you give more context about what you are doing?

i am trying to sort by location so i am sending this data [
{"location": {
"distance": '10km',
"center": [
14,
0
],
"order": "asc"
}}
]
in onChange

Sending to which service?
How are you sending this query? What does your code look like?
Which version are you using?