fixed search weirdness and eatery name works now
This commit is contained in:
@@ -133,6 +133,7 @@ const changeSearchHandler = evt => {
|
|||||||
|
|
||||||
const submitSearchHandler = evt => {
|
const submitSearchHandler = evt => {
|
||||||
evt.preventDefault();
|
evt.preventDefault();
|
||||||
|
setSearchItems([]);
|
||||||
console.log(search_term)
|
console.log(search_term)
|
||||||
console.log(net_id)
|
console.log(net_id)
|
||||||
Axios.post("http://3.219.93.142:8000/api/menu_search",
|
Axios.post("http://3.219.93.142:8000/api/menu_search",
|
||||||
@@ -312,7 +313,7 @@ color: 'main',
|
|||||||
/>
|
/>
|
||||||
</TableCell>
|
</TableCell>
|
||||||
|
|
||||||
<TableCell> {searchitem.eatery_id}</TableCell>
|
<TableCell> {searchitem.eatery_name}</TableCell>
|
||||||
<TableCell> {searchitem.item_name}</TableCell>
|
<TableCell> {searchitem.item_name}</TableCell>
|
||||||
<TableCell> {searchitem.serving_size}</TableCell>
|
<TableCell> {searchitem.serving_size}</TableCell>
|
||||||
</TableRow>
|
</TableRow>
|
||||||
|
|||||||
@@ -178,7 +178,7 @@ const net_id = ReactSession.get("net_id");
|
|||||||
//Send sums to results if it is Saturday
|
//Send sums to results if it is Saturday
|
||||||
const sendResults = () => {
|
const sendResults = () => {
|
||||||
var day = planDay();
|
var day = planDay();
|
||||||
if (day === 7):
|
if (day === 7){
|
||||||
Axios.post('http://3.219.93.142:8000/api/results',
|
Axios.post('http://3.219.93.142:8000/api/results',
|
||||||
{
|
{
|
||||||
net_id: ReactSession.get("net_id"),
|
net_id: ReactSession.get("net_id"),
|
||||||
@@ -198,6 +198,7 @@ const net_id = ReactSession.get("net_id");
|
|||||||
console.log(response);
|
console.log(response);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user