You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// If the current section isn't a list item, but the list array has items, then we know the end of the list was just passed and we can now group the list items under a <ul> for rendering:
355
+
!section.listItem&&(list.length>0)||
356
+
// This case ensures that a list is properly rendered when the last element of a post is a list:
357
+
section.listItem&&(i===arr.length-1)
358
+
){
354
359
postContent.push(
355
-
// TODO: why is key needed on this UL here?
356
360
<ULkey={listGroupKey}>{list}</UL>
357
361
)
358
362
list=[]
359
363
listGroupKey=''
360
364
}
361
365
362
-
else{
366
+
if(!section.listItem){
363
367
switch(section._type){
364
368
case'block':
365
369
postContent.push(
@@ -479,15 +483,5 @@ export async function getStaticProps(context) {
0 commit comments