diff options
| author | julian laplace <julescarbon@gmail.com> | 2022-10-26 18:59:11 +0200 |
|---|---|---|
| committer | julian laplace <julescarbon@gmail.com> | 2022-10-26 18:59:11 +0200 |
| commit | 5a697b0a4fb2578a98a1b8e064ebe62dad9616e2 (patch) | |
| tree | 9f87e04d923ba2d2fb04484d881cc041cbc1b180 | |
| parent | fe73857cdbcf5d18eafbdb7a883099a8c2cbfa7b (diff) | |
missing thread?
| -rw-r--r-- | public/assets/js/lib/views/stream/hootstream.js | 2 |
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>"]; |
