mirror of
https://github.com/LinoSchmidt/StickExporterTX.git
synced 2026-03-21 01:51:15 +01:00
Only log names are displayed
This commit is contained in:
@@ -21,7 +21,14 @@ function MainSide() {
|
||||
</tr>
|
||||
}));
|
||||
useEffect(() => {
|
||||
setLogTable(logs.substring(1).slice(0, -1).split('""').map((log, index) => {
|
||||
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 <tr key={index}>
|
||||
<td>{log}</td>
|
||||
</tr>
|
||||
|
||||
Reference in New Issue
Block a user