From 99a89c97d5d3ca49f04cba2d616e4bc8d938ce44 Mon Sep 17 00:00:00 2001 From: Brendan Allan Date: Fri, 15 Nov 2024 01:47:07 +0800 Subject: [PATCH] .catch instead of .then --- apps/desktop/src/routes/(window-chrome)/settings/recordings.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/desktop/src/routes/(window-chrome)/settings/recordings.tsx b/apps/desktop/src/routes/(window-chrome)/settings/recordings.tsx index 46232eafc..7de458006 100644 --- a/apps/desktop/src/routes/(window-chrome)/settings/recordings.tsx +++ b/apps/desktop/src/routes/(window-chrome)/settings/recordings.tsx @@ -18,7 +18,7 @@ export default function Recordings() { queryFn: async () => { const result = await commands .listRecordings() - .then( + .catch( () => Promise.resolve([]) as ReturnType );