Skip to content

Commit

Permalink
Fix sidebar block after aem.js update
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyklapatch committed Nov 7, 2024
1 parent f363440 commit 68a1aaa
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion best-cigars-guide/scripts/scripts.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,21 @@
/* eslint-disable max-len */
// eslint-disable-next-line object-curly-newline
import { buildBlock, loadHeader, loadFooter, decorateButtons, decorateIcons, decorateSections, decorateBlocks, decorateTemplateAndTheme, waitForFirstImage, loadSections, loadSection, loadCSS, decorateBlock } from './aem.js';
import {
buildBlock,
loadHeader,
loadFooter,
decorateButtons,
decorateIcons,
decorateSections,
decorateBlocks,
decorateTemplateAndTheme,
waitForFirstImage,
loadSections,
loadSection,
loadCSS,
decorateBlock,
loadBlock

Check failure on line 17 in best-cigars-guide/scripts/scripts.js

View workflow job for this annotation

GitHub Actions / build

Missing trailing comma
} from './aem.js';

const CATEGORY_INDEX_PATH = '/best-cigars-guide/index/category-index.json';
const ARTICLE_INDEX_PATH = '/best-cigars-guide/index/query-index.json';
Expand Down Expand Up @@ -181,6 +196,7 @@ function buildSidebarBlock(main) {
const block = buildBlock('sidebar', '');
sidebar.append(block);
decorateBlock(block);
loadBlock(block);

container.classList.add('article-wrapper');
container.append(sidebar);
Expand Down

0 comments on commit 68a1aaa

Please sign in to comment.