coyotte508 HF Staff commited on
Commit
a0fe71c
·
1 Parent(s): c7cf68e

🐛 FIx crash

Browse files
Files changed (1) hide show
  1. server.ts +4 -0
server.ts CHANGED
@@ -63,6 +63,10 @@ async function lookupTweets() {
63
  }`
64
  );
65
 
 
 
 
 
66
  let lookups: TweetLookups = await ff(
67
  `tweets?ids=${data.data
68
  .map((t) => t.id)
 
63
  }`
64
  );
65
 
66
+ if (!data.data || !data.data.length) {
67
+ return;
68
+ }
69
+
70
  let lookups: TweetLookups = await ff(
71
  `tweets?ids=${data.data
72
  .map((t) => t.id)