mirror of
https://github.com/LinoSchmidt/StickExporterTX.git
synced 2026-03-21 01:51:15 +01:00
Fixed initial log table state
This commit is contained in:
@@ -11,11 +11,7 @@ import {formatDate} from "../dateFormat";
|
|||||||
function MainSide() {
|
function MainSide() {
|
||||||
const [logs, setLogs] = useState(settingList.log);
|
const [logs, setLogs] = useState(settingList.log);
|
||||||
const [output, setOutput] = useState(settingList.output);
|
const [output, setOutput] = useState(settingList.output);
|
||||||
const [logTable, setLogTable] = useState(logs.substring(1).slice(0, -1).split('""').map((log, index) => {
|
const [logTable, setLogTable] = useState([<tr key={0}></tr>]);
|
||||||
return <tr key={index}>
|
|
||||||
<td>{log}</td>
|
|
||||||
</tr>
|
|
||||||
}));
|
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user