diff --git a/package.json b/package.json index 576e207..3fefe17 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,7 @@ "react_test": "react-scripts test", "eject": "react-scripts eject" }, - "proxy": "http://192.168.1.70:5000", + "proxy": "http://localhost:5000", "eslintConfig": { "extends": [ "react-app", diff --git a/src/pages/Measure/MeasureTable.jsx b/src/pages/Measure/MeasureTable.jsx index a00575c..2a9ca4c 100644 --- a/src/pages/Measure/MeasureTable.jsx +++ b/src/pages/Measure/MeasureTable.jsx @@ -36,9 +36,9 @@ export const MeasureTable = ({idWell, idCategory, title, columns, values, update useEffect(() => { let valuesToDisplay = [] - if(!selectedTimeLineId) + if(!selectedTimeLineId) valuesToDisplay = values && values.length - ? values[[values.length-1]] + ? values[values.length-1] : [] else valuesToDisplay = values.find(el => el.id === selectedTimeLineId)