From 7c272d7c1bd0c2c3e963adef8aa3972f1a418015 Mon Sep 17 00:00:00 2001 From: Matthias Bodenbenner <m.bodenbenner@wzl-mq.rwth-aachen.de> Date: Fri, 16 Aug 2024 16:20:03 +0200 Subject: [PATCH] fixed two bugs --- src/const.ts | 2 +- src/features/demoProjects/DemoProjects.tsx | 1 + src/features/privateProjects/PrivateProjects.tsx | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/const.ts b/src/const.ts index fca8164..9bdd260 100644 --- a/src/const.ts +++ b/src/const.ts @@ -4,5 +4,5 @@ export const DEV_MODE = process.env.NODE_ENV === 'development'; export const BASE_URL = DEV_MODE ? "http://localhost:3000" : "https://iot.wzl-mq.rwth-aachen.de/soil"; export const DATA_BACKEND = DEV_MODE ? "http://localhost:8402" : "https://iot.wzl-mq.rwth-aachen.de/soil-data" // export const SOIL_BACKEND = DEV_MODE ? "http://localhost:8001" : "https://iot.wzl-mq.rwth-aachen.de/soil-backend" -export const SOIL_BACKEND = DEV_MODE ? "http://localhost:8412" : "http://localhost:8412" +export const SOIL_BACKEND = DEV_MODE ? "http://localhost:8412" : "https://iot.wzl-mq.rwth-aachen.de/soil-backend" // export const SOIL_BACKEND = DEV_MODE ? "https://iot.wzl-mq.rwth-aachen.de/soil-backend" : "https://iot.wzl-mq.rwth-aachen.de/soil-backend" \ No newline at end of file diff --git a/src/features/demoProjects/DemoProjects.tsx b/src/features/demoProjects/DemoProjects.tsx index 8fcea6c..aedbe0b 100644 --- a/src/features/demoProjects/DemoProjects.tsx +++ b/src/features/demoProjects/DemoProjects.tsx @@ -5,6 +5,7 @@ import CloudDownloadIcon from '@mui/icons-material/CloudDownload'; import { useAppDispatch } from '../../store/hooks'; import { addTextModel, importPrivateProject, Project, selectPrivateProjects } from '../soil-editor/soileditorSlice'; import { Tooltip, Divider, Avatar, ListItemAvatar, ListItem, ListItemText, List} from '@mui/material'; + export function DemoProjects() { const dispatch = useAppDispatch() diff --git a/src/features/privateProjects/PrivateProjects.tsx b/src/features/privateProjects/PrivateProjects.tsx index afe4226..0057521 100644 --- a/src/features/privateProjects/PrivateProjects.tsx +++ b/src/features/privateProjects/PrivateProjects.tsx @@ -7,6 +7,7 @@ import { deleteProjectById, importPrivateProject, Project, selectPrivateProjects import { Tooltip, Divider, Avatar, ListItemAvatar, ListItem, ListItemText, List} from '@mui/material'; import DeleteIcon from '@mui/icons-material/Delete'; import { DeleteWarningeDialog } from './deleteWarningDialog'; + export function PrivateProjects() { const privateProjects = useAppSelector(selectPrivateProjects); const dispatch = useAppDispatch(); -- GitLab