Tengo un problema con mi consulta axios:
apiClient.get('http://localhost:8080/api/internalLocations/search', { params: { locationTypeCode: 'BIN_LOCATION', offset: '0', max: '5', parentLocation: { id: `${this.props.currentLocation}`, }, }, }) La consulta debe ser typeof ?[...]offset=5&parentLocation.id=xyz , pero ahora es así: &offset=0&max=5&parentLocation={"id":"[object Object]"} y el backend no No sé cómo manejar eso. ¿Hay alguna posibilidad de convertirlo en parentLocation.id=xyz ?
Prueba esto, debería funcionar
apiClient.get('http://localhost:8080/api/internalLocations/search', { params: { locationTypeCode: 'BIN_LOCATION', offset: '0', max: '5', 'parentLocation.id': `${this.props.currentLocation}`, }, })