Skip to content

Commit

Permalink
Fixes regression in error messaging issue with tabs in front matter #…
Browse files Browse the repository at this point in the history
  • Loading branch information
zachleat committed Jun 27, 2024
1 parent 8453aea commit e2116a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TemplateBehavior.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class TemplateBehavior {
}

let computedKey = this.config.keys.computed;
if (computedKey in data && isPlainObject(data[computedKey].permalink)) {
if (computedKey in data && isPlainObject(data[computedKey]?.permalink)) {
for (let key of Object.keys(data[computedKey].permalink)) {
keys.add(key);
}
Expand Down

0 comments on commit e2116a5

Please sign in to comment.