about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2023-03-22 11:07:00 -0500
committerPaul Frazee <pfrazee@gmail.com>2023-03-22 11:07:00 -0500
commita369e079568fbe31e604235238169146e4495390 (patch)
treece3bd1b2797cf74e869a457685aca64ee7970135 /src
parenta8a747ebcbf19fef502344c1d3bc69b8956c0b25 (diff)
downloadvoidsky-a369e079568fbe31e604235238169146e4495390.tar.zst
Fix tsc
Diffstat (limited to 'src')
-rw-r--r--src/lib/api/feed-manip.ts17
-rw-r--r--src/view/com/pager/Pager.web.tsx2
2 files changed, 1 insertions, 18 deletions
diff --git a/src/lib/api/feed-manip.ts b/src/lib/api/feed-manip.ts
index 664bacd88..c0f5dde28 100644
--- a/src/lib/api/feed-manip.ts
+++ b/src/lib/api/feed-manip.ts
@@ -72,21 +72,6 @@ export class FeedViewPostsSlice {
       this.items.splice(0, 0, {post: this.items[0].reply?.parent})
     }
   }
-
-  logSelf() {
-    console.log(
-      `- Slice ${this.items.length}${this.isThread ? ' (thread)' : ''} -`,
-    )
-    for (const item of this.items) {
-      console.log(
-        `  ${item.reason ? `RP by ${item.reason.by.handle}: ` : ''}${
-          item.post.author.handle
-        }: ${item.reply ? `(Reply ${item.reply.parent.author.handle}) ` : ''}${
-          item.post.record.text
-        }`,
-      )
-    }
-  }
 }
 
 export class FeedTuner {
@@ -158,8 +143,6 @@ export class FeedTuner {
       for (const item of slice.items) {
         this.seenUris.add(item.post.uri)
       }
-      // DEBUG uncomment to get a quick view of the data
-      // slice.logSelf()
     }
 
     return slices
diff --git a/src/view/com/pager/Pager.web.tsx b/src/view/com/pager/Pager.web.tsx
index 3c2805833..107497f6f 100644
--- a/src/view/com/pager/Pager.web.tsx
+++ b/src/view/com/pager/Pager.web.tsx
@@ -50,7 +50,7 @@ export const Pager = ({
           offset,
           onSelect: onTabBarSelect,
         })}
-      {children.map((child, i) => (
+      {React.Children.map(children, (child, i) => (
         <View
           style={selectedPage === i ? undefined : s.hidden}
           key={`page-${i}`}>