1
0
Fork 0
mirror of https://github.com/seanmorley15/AdventureLog.git synced 2025-07-22 14:29:36 +02:00

fix: clear album selection when switching search categories in ImmichSelect

This commit is contained in:
Sean Morley 2025-06-03 19:16:44 -04:00
parent d0c1ecd394
commit 2f7103f5f3

View file

@ -31,11 +31,21 @@
}
$: {
if (currentAlbum) {
if (searchCategory === 'album' && currentAlbum) {
immichImages = [];
fetchAlbumAssets(currentAlbum);
} else if (searchCategory === 'date' && selectedDate) {
// Clear album selection when switching to date mode
if (currentAlbum) {
currentAlbum = '';
}
searchImmich();
} else if (searchCategory === 'search') {
// Clear album selection when switching to search mode
if (currentAlbum) {
currentAlbum = '';
}
// Search will be triggered by the form submission or debounced search
}
}