#346 - Fix media refresh

This commit is contained in:
Elio Struyf
2022-06-01 11:59:02 +02:00
parent 8d00726322
commit cd3a867422
+1 -1
View File
@@ -65,7 +65,7 @@ export class MediaHelpers {
relSelectedFolderPath = selectedFolder.replace(parsedPath, '');
}
if (relSelectedFolderPath.startsWith('/')) {
if (relSelectedFolderPath && relSelectedFolderPath.startsWith('/')) {
relSelectedFolderPath = relSelectedFolderPath.substring(1);
}