Skip to content

Commit a5009f5

Browse files
authored
fix: Context onError type fix (#5137)
## Description 1. What is this PR about (link the issue and add a short description) ## Steps for reproduction 1. click button 2. expect xyz ## Code Review - [ ] hi @kof, I need you to do - conceptual review (architecture, feature-correctness) - detailed review (read every line) - test it on preview ## Before requesting a review - [ ] made a self-review - [ ] added inline comments where things may be not obvious (the "why", not "what") ## Before merging - [ ] tested locally and on preview environment (preview dev login: 0000) - [ ] updated [test cases](https://github.com/webstudio-is/webstudio/blob/main/apps/builder/docs/test-cases.md) document - [ ] added tests - [ ] if any new env variables are added, added them to `.env` file
1 parent a068bc9 commit a5009f5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/react-sdk/src/context.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export const ReactSdkContext = createContext<
3333
// eslint-disable-next-line @typescript-eslint/no-explicit-any
3434
resources: Record<string, any>;
3535
breakpoints: { id: string; minWidth?: number; maxWidth?: number }[];
36-
onError: (error: Error) => void;
36+
onError: (error: unknown) => void;
3737
}
3838
>({
3939
assetBaseUrl: "/",

0 commit comments

Comments
 (0)