Jobs path split fix

This commit is contained in:
FTCHD
2025-02-28 15:52:58 +02:00
parent 4c910b729d
commit 898ef23044
+3
View File
@@ -30,6 +30,9 @@ export default function Jobs() {
}, [])
const buildReadablePath = useCallback((path: string) => {
if (!path) {
return ''
}
return path.split(':')?.[1]
? `${path.split(':')[0]}:/.../${path.split(':')[1]?.split('/').slice(-1).join('')}`
: path.split(':')?.[0]?.split('/').slice(-1).join('')