Skip to content

Commit

Permalink
fix: check for the correct tab name
Browse files Browse the repository at this point in the history
the tab name is Gallery, not gallery. just in case it ever _is_ gallery, make it lower case rather than checking for the capitalised version.
  • Loading branch information
alycejenni committed Nov 23, 2023
1 parent 4f5308e commit 52d12ce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ let results = {
if (aborted) {
throw new AbortError(searchId);
}
if (context.state.display.view === 'gallery') {
if (context.state.display.view.toLowerCase() === 'gallery') {
return context.dispatch('images/loadAndCheckImages');
}
return new Promise((r) => {
Expand Down

0 comments on commit 52d12ce

Please sign in to comment.