Don't show query titles for a single camera.

This commit is contained in:
Dermot Duffy
2022-05-10 20:56:11 -07:00
parent 40096e8a6f
commit e2f69f5aca
+3 -1
View File
@@ -161,7 +161,9 @@ export class BrowseMediaUtil {
if (this.isTrueMedia(child)) { if (this.isTrueMedia(child)) {
children.push(child); children.push(child);
} else { } else {
if (query.title) { // If there are multiple inputs, separate the folder names with the
// query title (if available).
if (query.title && input.size > 1) {
children.push({ ...child, title: `[${query.title}] ${child.title}` }); children.push({ ...child, title: `[${query.title}] ${child.title}` });
} else { } else {
children.push(child); children.push(child);