Skip to content

Commit

Permalink
js fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dev-rajneeshkumar committed Oct 20, 2023
1 parent 7a00d99 commit 12f1d5f
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions blocks/resources-carousel/resources-carousel.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,11 @@ async function getFeaturedResources(paths) {
&& resource.gatedURL !== '0'
&& paths.includes(new URL(resource.gatedURL, 'https://moleculardevices.com').pathname))
))
.limit(9)
.all();
}

export default async function decorate(block) {
const fragmentPaths = [...block.querySelectorAll('a')].map((a) => a.href);
await Promise.all(
fragmentPaths.map(async (path) => {
const fragmentHtml = await fetchFragment(path, false);
console.log(fragmentHtml);
})
);


const blockLinks = block.querySelectorAll('a');
const blockLinks = block.querySelectorAll('a');

Check failure on line 23 in blocks/resources-carousel/resources-carousel.js

View workflow job for this annotation

GitHub Actions / build

Expected indentation of 2 spaces but found 3
let resources = [];

if (blockLinks.length !== 0) {
Expand Down

0 comments on commit 12f1d5f

Please sign in to comment.