From df414f1a47b1031a4daeff1be64e92c3d09203d5 Mon Sep 17 00:00:00 2001 From: Lino Schmidt Date: Wed, 6 Jul 2022 14:06:10 +0200 Subject: [PATCH] Fixed initial log table state --- src/components/ui/mainSide.tsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/components/ui/mainSide.tsx b/src/components/ui/mainSide.tsx index 0e1afd8..d26b68c 100644 --- a/src/components/ui/mainSide.tsx +++ b/src/components/ui/mainSide.tsx @@ -11,11 +11,7 @@ import {formatDate} from "../dateFormat"; function MainSide() { const [logs, setLogs] = useState(settingList.log); const [output, setOutput] = useState(settingList.output); - const [logTable, setLogTable] = useState(logs.substring(1).slice(0, -1).split('""').map((log, index) => { - return - {log} - - })); + const [logTable, setLogTable] = useState([]); useEffect(() => {