Skip to content

Commit

Permalink
Merge pull request #3 from photogabble/bugfix/1-cannot-read-propertie…
Browse files Browse the repository at this point in the history
…s-of-undefined

Check if typeof link is undefined
  • Loading branch information
carbontwelve authored Apr 16, 2023
2 parents 9e1d21f + 8c4c681 commit a0a7605
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [1.0.1]

### Fixed

- Check if typeof link is undefined (#3)

## [1.0.0]

First release

[1.0.0]: https://github.com/photogabble/eleventy-plugin-font-subsetting/releases/tag/v1.0.0
[1.0.1]: https://github.com/photogabble/eleventy-plugin-font-subsetting/releases/tag/v1.0.1
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ module.exports = function (eleventyConfig, options = {}) {

return aliases.has(link.slug);
}))
.filter(link => (typeof link !== undefined))
.filter(link => (typeof link !== 'undefined'))
.forEach(link => compilePromises.push(compileTemplate(link)))
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@photogabble/eleventy-plugin-interlinker",
"version": "1.0.0",
"version": "1.0.1",
"description": "Obsidian WikiLinks, BackLinks and Embed support for 11ty",
"keywords": [
"11ty",
Expand Down

0 comments on commit a0a7605

Please sign in to comment.