Skip to content

Commit

Permalink
Regression: Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ggazzo committed Jul 5, 2022
1 parent 690f0c3 commit f26dd61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/meteor/client/hooks/useEndpointActionExperimental.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const useEndpointActionExperimental = <TMethod extends Method, TPath exte

return data;
} catch (error) {
if (typeof error === 'object' && 'error' in error) {
if (error && typeof error === 'object' && 'error' in error) {
dispatchToastMessage({ type: 'error', message: (error as any).error });
throw error;
}
Expand Down

0 comments on commit f26dd61

Please sign in to comment.