We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a22d1f5 commit 0387ab4Copy full SHA for 0387ab4
packages/connect-react/examples/nextjs/src/app/page.tsx
@@ -31,11 +31,17 @@ export default function Home() {
31
configuredProps={configuredProps}
32
onUpdateConfiguredProps={setConfiguredProps}
33
onSubmit={async () => {
34
- await client.actionRun({
35
- userId,
36
- actionId: "slack-send-message",
37
- configuredProps,
38
- })}}
+ try {
+ await client.actionRun({
+ userId,
+ actionId: "slack-send-message",
+ configuredProps,
39
+ });
40
+ } catch (error) {
41
+ console.error('Action run failed:', error);
42
+ // Consider showing user-friendly error message
43
+ }
44
+ }}
45
/>
46
</FrontendClientProvider>
47
</>
0 commit comments