Skip to content

Commit

Permalink
- Don't automatically select first track for audio recordings.
Browse files Browse the repository at this point in the history
- Fix enabling export search results link.
  • Loading branch information
hardiesoft committed Feb 9, 2025
1 parent f208c87 commit a8ddc8b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions browse-next/src/components/ActivitySearchParameters.vue
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,8 @@ const minDateForSelectedLocations = computed<Date>(() => {
const searchIsValid = computed<boolean>(() => {
const hasValidDateRange =
Array.isArray(selectedDateRange.value) ||
(selectedDateRange.value.value &&
Array.isArray(selectedDateRange.value.value)) ||
Array.isArray(customDateRange.value);
const hasAdvancedSettingsSelected =
showAdvanced.value &&
Expand Down
5 changes: 4 additions & 1 deletion browse-next/src/components/RecordingViewTracks.vue
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,10 @@ watch(
prevRecordingType.value = nextRecording.type;
if (route.params.trackId) {
currentTrack.value = getTrackById(currentTrackId.value);
} else if (recordingTracksPossiblyFiltered.value.length !== 0) {
} else if (
recordingTracksPossiblyFiltered.value.length !== 0 &&
nextRecording.type !== RecordingType.Audio
) {
emit("track-selected", {
trackId: recordingTracksPossiblyFiltered.value[0].id,
automatically: true,
Expand Down

0 comments on commit a8ddc8b

Please sign in to comment.