Skip to content
This repository has been archived by the owner on Nov 13, 2023. It is now read-only.

Commit

Permalink
fixing legacy logic
Browse files Browse the repository at this point in the history
  • Loading branch information
qiyundai committed Jun 26, 2023
1 parent 24d45bd commit 5ef5b9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion express/blocks/template-list/breadcrumbs.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ function getCrumbsForSEOPage(templatesUrl, allTemplatesMetadata, taskCategories,
export default async function getBreadcrumbs() {
// for backward compatibility
// TODO: remove this check after all content are updated
if (getMetadata('sheet-powered') !== 'Y') {
if (getMetadata('sheet-powered') !== 'Y' || !document.querySelector('.search-marquee')) {
return null;
}
const { origin, pathname } = window.location;
Expand Down

0 comments on commit 5ef5b9f

Please sign in to comment.