mirror of
https://github.com/webadderallorg/Recordly.git
synced 2026-09-24 23:05:49 +00:00
try catch on source selection
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user