From 1e4b4a846459ac47f8c6101d4b8e7535823ccfb8 Mon Sep 17 00:00:00 2001
From: Nicolas Ramz <nicolas.ramz@gmail.com>
Date: Mon, 13 May 2024 17:57:15 +0200
Subject: [PATCH] Transfers: fixed crashes when swiching to transfers

This was introduced by previous commit
---
 src/components/App.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/components/App.tsx b/src/components/App.tsx
index ae49635..942d7db 100644
--- a/src/components/App.tsx
+++ b/src/components/App.tsx
@@ -304,7 +304,7 @@ const App = observer(() => {
                     {splitView && <SideView viewState={views[1]} hide={!isExplorer} />}
                     <Downloads hide={isExplorer} />
                 </div>
-                {cache.cursor && <PreviewDialog />}
+                {cache?.cursor && <PreviewDialog />}
             </React.Fragment>
         </Provider>
     )