Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

.catch instead of .then

Brendan Allan99a89c97d5d3
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<typeof commands.listRecordings>
);