Skip to content

Commit

Permalink
feat: etherpad render in pages fix
Browse files Browse the repository at this point in the history
  • Loading branch information
PAYNEA03 committed Aug 3, 2023
1 parent 4116b20 commit b119732
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/etherpad/fetchPad.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,9 @@ export async function fetchPadDetails(cacheKey, rev = 0) {
const contentResponse = await fetch(`/api/etherpad/pad?pad=${padData.padID}&rev=${newRev}`);
const contentData = await contentResponse.json();

if (contentData.content && contentData.content.text) {
// console.log('fetchPadDetails:text: ', contentData.content.text);
if (contentData.content) {

let { content, data: frontmatter } = matter(contentData.content.text);
let { content, data: frontmatter } = matter(contentData.content);
frontmatter.padID = padData.padID;
frontmatterObj = frontmatter;
rawContent = content;
Expand Down

0 comments on commit b119732

Please sign in to comment.