Skip to content

Commit

Permalink
unnecesary code
Browse files Browse the repository at this point in the history
  • Loading branch information
uo288574 committed Apr 26, 2024
1 parent 0d747f5 commit cf9f219
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions webapp/src/components/Menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,8 @@ import { useNavigate } from 'react-router-dom'; // Importa useHistory
import Button from './Button'
import { Footer } from './footer/Footer';
import { Nav } from './nav/Nav';
import {shuffleArray} from './Util'
import axios from 'axios';


//var isApiCalledRef = false;//ASK - is this necessary?
const apiEndpoint = process.env.REACT_APP_API_ENDPOINT|| 'http://localhost:8000';

Expand All @@ -29,7 +27,6 @@ const Menu = () => {
try {
topics = await axios.get(`${apiEndpoint}/topics`)
topics = topics.data
console.log("Topics", topics)
} catch(error) {
console.error(error)
}
Expand Down

0 comments on commit cf9f219

Please sign in to comment.