From eb1baebc4919058ae773f2d9ecb7b2e76d7d8e4a Mon Sep 17 00:00:00 2001 From: julian laplace Date: Wed, 26 Oct 2022 23:06:48 +0200 Subject: build --- public/assets/js/lib/views/stream/hootstream.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'public/assets/js/lib/views/stream/hootstream.js') diff --git a/public/assets/js/lib/views/stream/hootstream.js b/public/assets/js/lib/views/stream/hootstream.js index b0e6f3d..c93b5db 100644 --- a/public/assets/js/lib/views/stream/hootstream.js +++ b/public/assets/js/lib/views/stream/hootstream.js @@ -97,13 +97,15 @@ var HootStream = View.extend({ } if ( filters.music && - thread.files?.some((file) => AUDIO_REGEXP.test(file.filename)) + thread.files && + thread.files.some((file) => AUDIO_REGEXP.test(file.filename)) ) { return true; } if ( filters.images && - thread.files?.some((file) => IMAGE_REGEXP.test(file.filename)) + thread.files && + thread.files.some((file) => IMAGE_REGEXP.test(file.filename)) ) { return true; } -- cgit v1.2.3-70-g09d2