Skip to content

Commit

Permalink
fix(docusaurus-og): fix TypeError 'content is not iterable' in pages …
Browse files Browse the repository at this point in the history
…plugin
  • Loading branch information
jeangovil committed Jun 19, 2023
1 parent 754c62e commit f3c5e5c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/docusaurus-og/src/server/pages.plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ export class PagesPlugin {
const content = plugin.content as LoadedContent
const options = plugin.options as PagesPluginOptions

if (!Array.isArray(content)) return

for (const metadata of content) {
const doc = new Document(this.getHtmlPath(metadata.permalink))
await doc.load()
Expand Down

0 comments on commit f3c5e5c

Please sign in to comment.