Create polished demo videos without editing skills. Mac/Windows/Linux
try catch on source selection
Alan Trebugeais815ec2a3609a
diff --git a/src/components/launch/popovers/SourcePopover.tsx b/src/components/launch/popovers/SourcePopover.tsxindex 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}