Skip to content

best way to save what you love

tiktok: throw a proper error if no video was returned from api

wukko90f82ae36ea9
diff --git a/src/modules/processing/services/tiktok.js b/src/modules/processing/services/tiktok.js
index bd925b56..0da62a1e 100644
--- a/src/modules/processing/services/tiktok.js
+++ b/src/modules/processing/services/tiktok.js
@@ -23,7 +23,7 @@ function selector(j, h, id) {
t = j['aweme_detail'];
break;
}
- if (t.length < 3) return false;
+ if (t?.length < 3) return false;
return t;
}