Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
  • Loading branch information
qdraw committed Dec 14, 2023
1 parent fb8ef34 commit a22ef1e
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,11 @@ export const WarningBoxNoPhotosFilter: React.FunctionComponent<IWarningBoxNoPhot
}

// only on the home page there is a link to the preferences page
if (pageType !== PageType.Loading && subPath === "/") {
if (
pageType !== PageType.Loading &&
subPath === "/" &&
items.length === 0
) {
warningBox = (
<a
className="warning-box"
Expand Down

0 comments on commit a22ef1e

Please sign in to comment.