diff --git a/src/frontend/src/controllers/API/index.ts b/src/frontend/src/controllers/API/index.ts index a7270a7a0..910aeacf6 100644 --- a/src/frontend/src/controllers/API/index.ts +++ b/src/frontend/src/controllers/API/index.ts @@ -242,7 +242,7 @@ export async function saveFlowStyleToDatabase(flowStyle: FlowStyleType) { * @returns {Promise>} A promise that resolves to an AxiosResponse containing the version information. */ export async function getVersion() { - return await axios.get("/version"); + return await fetch("/version"); } /** @@ -251,5 +251,5 @@ export async function getVersion() { * @returns {Promise>} A promise that resolves to an AxiosResponse containing the health status. */ export async function getHealth() { - return await axios.get("/health"); + return await fetch("/health"); } diff --git a/src/frontend/src/pages/MainPage/components/menuBar/index.tsx b/src/frontend/src/pages/MainPage/components/menuBar/index.tsx index b87ff556a..f8a1ccce9 100644 --- a/src/frontend/src/pages/MainPage/components/menuBar/index.tsx +++ b/src/frontend/src/pages/MainPage/components/menuBar/index.tsx @@ -26,7 +26,7 @@ import ApiModal from "../../../../modals/ApiModal"; import { alertContext } from "../../../../contexts/alertContext"; import { updateFlowInDatabase } from "../../../../controllers/API"; -const MenuBar = ({ activeTab, setRename, rename, flows, tabIndex }) => { +export const MenuBar = ({ activeTab, setRename, rename, flows, tabIndex }) => { const { updateFlow, setTabIndex, addFlow } = useContext(TabsContext); const { setErrorData } = useContext(alertContext); const { openPopUp } = useContext(PopUpContext); diff --git a/src/frontend/src/pages/MainPage/index.tsx b/src/frontend/src/pages/MainPage/index.tsx index aa3df49a7..e8ad6c097 100644 --- a/src/frontend/src/pages/MainPage/index.tsx +++ b/src/frontend/src/pages/MainPage/index.tsx @@ -63,7 +63,6 @@ export default function HomePage() { rename={rename} flows={flows} tabIndex={tabIndex} - handleSaveFlow={handleSaveFlow} />
Explore