diff --git a/src/components/ui/mainSide.tsx b/src/components/ui/mainSide.tsx index 8897a53..4d2914b 100644 --- a/src/components/ui/mainSide.tsx +++ b/src/components/ui/mainSide.tsx @@ -21,23 +21,28 @@ function MainSide() { })); useEffect(() => { - const logList = settingList.log.substring(1).slice(0, -1).split('""'); + if(settingList.log == "") { + setLogTable([]); + } else { - const logListName:string[] = []; - logList.forEach(log => { - logListName.push(log.split('\\')[log.split('\\').length - 1]); - }); - - setLogTable(logListName.map((log, index) => { - return - {index+1}. {log} - - - })); + const logList = settingList.log.substring(1).slice(0, -1).split('""'); + + const logListName:string[] = []; + logList.forEach(log => { + logListName.push(log.split('\\')[log.split('\\').length - 1]); + }); + + setLogTable(logListName.map((log, index) => { + return + {index+1}. {log} + + + })); + } }, [logs]); return ( @@ -70,7 +75,7 @@ function MainSide() {

Output Folder:

{output}

- +
)