Skip to content

Commit

Permalink
.catch instead of .then
Browse files Browse the repository at this point in the history
  • Loading branch information
Brendonovich committed Nov 14, 2024
1 parent 5754ecf commit 99a89c9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default function Recordings() {
queryFn: async () => {
const result = await commands
.listRecordings()
.then(
.catch(
() =>
Promise.resolve([]) as ReturnType<typeof commands.listRecordings>
);
Expand Down

1 comment on commit 99a89c9

@vercel
Copy link

@vercel vercel bot commented on 99a89c9 Nov 14, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.