From bbe01b91e60ec3a9e289c7226f5199ebaf4b8a60 Mon Sep 17 00:00:00 2001 From: Alan Trebugeais Date: Thu, 7 May 2026 11:07:13 +0200 Subject: [PATCH] try catch on source selection --- src/components/launch/popovers/SourcePopover.tsx | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/components/launch/popovers/SourcePopover.tsx b/src/components/launch/popovers/SourcePopover.tsx index dba8407b..194df8fe 100644 --- a/src/components/launch/popovers/SourcePopover.tsx +++ b/src/components/launch/popovers/SourcePopover.tsx @@ -77,9 +77,13 @@ export function SourcePopover({ windowSources={windowSources} selectedSource={selectedSource} loading={loading} - onSourceSelect={(source) => { - void onSourceSelect(source); - requestClose(POPOVER_ID); + onSourceSelect={async (source) => { + try { + await onSourceSelect(source); + requestClose(POPOVER_ID); + } catch (error) { + console.error("Failed to select source:", error); + } }} onFetchSources={fetchSources} open={open}