File tree Expand file tree Collapse file tree 3 files changed +3
-12
lines changed Expand file tree Collapse file tree 3 files changed +3
-12
lines changed Original file line number Diff line number Diff line change @@ -87,7 +87,6 @@ const propertyDateValue = (
87
87
) => {
88
88
if ( pageHeader && schema ?. name ?. toLowerCase ( ) === 'published' ) {
89
89
const publishDate = data ?. [ 0 ] ?. [ 1 ] ?. [ 0 ] ?. [ 1 ] ?. start_date
90
- console . log ( 'date' , { data, publishDate } )
91
90
92
91
if ( publishDate ) {
93
92
return `Published ${ formatDate ( publishDate , {
Original file line number Diff line number Diff line change @@ -34,14 +34,11 @@ export async function getAllPagesImpl(
34
34
} )
35
35
36
36
if ( map [ canonicalPageId ] ) {
37
- console . error (
38
- 'error duplicate canonical page id' ,
37
+ console . warn ( 'error duplicate canonical page id' , {
39
38
canonicalPageId,
40
39
pageId,
41
- map [ canonicalPageId ]
42
- )
43
-
44
- return map
40
+ existingPageId : map [ canonicalPageId ]
41
+ } )
45
42
} else {
46
43
return {
47
44
...map ,
Original file line number Diff line number Diff line change @@ -48,17 +48,12 @@ export async function getPage(pageId: string): Promise<ExtendedRecordMap> {
48
48
// the page title, slug, etc.
49
49
const navigationLinkRecordMaps = await getNavigationLinkPages ( )
50
50
51
- const preLength = Object . keys ( recordMap . block ) . length
52
51
if ( navigationLinkRecordMaps ?. length ) {
53
52
recordMap = navigationLinkRecordMaps . reduce (
54
53
( map , navigationLinkRecordMap ) =>
55
54
mergeRecordMaps ( map , navigationLinkRecordMap ) ,
56
55
recordMap
57
56
)
58
-
59
- const postLength = Object . keys ( recordMap . block ) . length
60
-
61
- console . log ( 'BLOCKS' , { preLength, postLength } )
62
57
}
63
58
}
64
59
You can’t perform that action at this time.
0 commit comments