summaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
authorjulian laplace <julescarbon@gmail.com>2022-10-26 18:59:11 +0200
committerjulian laplace <julescarbon@gmail.com>2022-10-26 18:59:11 +0200
commit5a697b0a4fb2578a98a1b8e064ebe62dad9616e2 (patch)
tree9f87e04d923ba2d2fb04484d881cc041cbc1b180 /public
parentfe73857cdbcf5d18eafbdb7a883099a8c2cbfa7b (diff)
missing thread?
Diffstat (limited to 'public')
-rw-r--r--public/assets/js/lib/views/stream/hootstream.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/public/assets/js/lib/views/stream/hootstream.js b/public/assets/js/lib/views/stream/hootstream.js
index 7f4ff88..ed6de22 100644
--- a/public/assets/js/lib/views/stream/hootstream.js
+++ b/public/assets/js/lib/views/stream/hootstream.js
@@ -120,7 +120,7 @@ var HootStream = View.extend({
},
renderThread: function ({ thread, comments, files, images }) {
- if (!thread?.length) {
+ if (!thread || !thread.length) {
console.error("Missing thread");
console.error(thread, comments, files, images);
return ["<div>Missing thread!</div>"];