Skip to content

Commit

Permalink
fix(search-ui): rerun search even if image preset not added
Browse files Browse the repository at this point in the history
the bug was caused by calling loadAndCheckImages directly when the image filter already existed in the query, both not passing a searchId in and also not running the search if loading directly into the gallery

Closes: #748
  • Loading branch information
alycejenni committed Feb 7, 2024
1 parent 72ed9b6 commit 472a83f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -167,11 +167,7 @@ export default {
this.loading = true;
this.addPreset(this.presetData)
.then((wasAdded) => {
if (wasAdded) {
return this.runSearch(0);
} else {
return this.loadAndCheckImages();
}
return this.runSearch(0);
})
.then(() => {
this.setFilteredRecordTag(this.recordTag + '$ with images');
Expand Down

0 comments on commit 472a83f

Please sign in to comment.