Fix clicking on timeline recordings.

This commit is contained in:
Dermot Duffy
2023-04-15 12:19:23 -07:00
parent 24f92fd78c
commit 69b34d7ea1
3 changed files with 55 additions and 30 deletions
+10 -5
View File
@@ -545,11 +545,16 @@ export class FrigateCardTimelineCore extends LitElement {
this.timelineConfig?.show_recordings &&
['background', 'group-label'].includes(properties.what)
) {
const query = createQueriesForRecordingsView(
this.cameraManager,
this.cardWideConfig,
new Set([String(properties.group)]),
);
const cameraIDs = properties.group
? new Set([String(properties.group)])
: this._getTimelineCameraIDs();
const query = cameraIDs
? createQueriesForRecordingsView(
this.cameraManager,
this.cardWideConfig,
cameraIDs,
)
: null;
if (query) {
view = await executeMediaQueryForView(
this,