Signed-off-by: Traxus <shyidx@gmail.com>

This commit is contained in:
Traxus 2023-04-22 00:52:38 -04:00
parent 2f5bf25d71
commit 2a70f987f9

View File

@ -1,5 +1,5 @@
import cms from 'lib/cms'
import { BlogPostRecord } from 'lib/cms/generated'
//import { BlogPostRecord } from 'lib/cms/generated'
import {
getBlogPosts as serverGetBlogPosts,
getBlogPostsCategories as serverGetBlogPostsCategories
@ -269,7 +269,8 @@ function getBlogJsonDirectoryPath() {
function pluckBlogPostData(json : any) {
let plucked : BlogPostRecord = {};
//let plucked : BlogPostRecord = {};
let plucked : any = {};
if('data' in json){
if('blogPost' in json.data) {