return url with, fix ffplayout#336

This commit is contained in:
jb-alvarado 2023-06-26 08:26:03 +02:00
parent b8f56638f4
commit 3589257e43

View File

@ -46,7 +46,13 @@ export const stringFormatter = () => {
function filename(path: string) {
if (path) {
const pathArr = path.split('/')
return pathArr[pathArr.length - 1]
const name = pathArr[pathArr.length - 1]
if (name) {
return name
} else {
return path
}
} else {
return ''
}