Skip to content

Commit

Permalink
Merge pull request #52 from oslabs-beta/dev
Browse files Browse the repository at this point in the history
push major bug fix to main
  • Loading branch information
KelvinVan1 authored Dec 15, 2022
2 parents c8e6aca + 327068a commit b314afe
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/client/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,18 @@ const App: React.FC = (): JSX.Element => {
};

useEffect(() => {
fetch('/init');
console.log('useeffect ran');
if(!apiKey || !grafUrl) return;

intializeDashboard();
}, [apiKey, grafUrl]);



useEffect(() => {
console.log('Init DB ran');
fetch('/init');
}, []);

return (

Expand Down

0 comments on commit b314afe

Please sign in to comment.