From b3310adbd978e0dc742e5fd483d815cb55e6f34a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A1=D0=B0=D0=BB=D0=B4=D0=B8=D0=BD=20=D0=92=D0=BB=D0=B0?= =?UTF-8?q?=D0=B4=D0=B8=D0=BC=D0=B8=D1=80?= <61758214+GGunSlinger@users.noreply.github.com> Date: Wed, 6 Jul 2022 17:34:27 +0300 Subject: [PATCH] crash case after use settings to default and open info on torrent crash with "Cannot read properties of undefined (reading 'length')" --- web/src/components/DialogTorrentDetailsContent/Table/index.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/components/DialogTorrentDetailsContent/Table/index.jsx b/web/src/components/DialogTorrentDetailsContent/Table/index.jsx index dd65182..2091b5a 100644 --- a/web/src/components/DialogTorrentDetailsContent/Table/index.jsx +++ b/web/src/components/DialogTorrentDetailsContent/Table/index.jsx @@ -26,7 +26,7 @@ const Table = memo( const fileHasResolutionText = !!playableFileList?.find(({ path }) => ptt.parse(path).resolution) // if files in list is more then 1 and no season text detected by ptt.parse, show full name - const shouldDisplayFullFileName = playableFileList.length > 1 && !fileHasEpisodeText + const shouldDisplayFullFileName = playableFileList?.length > 1 && !fileHasEpisodeText const isVlcUsed = JSON.parse(localStorage.getItem('isVlcUsed')) ?? true