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 a1b0de7 commit b57ecf8Copy full SHA for b57ecf8
packages/connect-react/src/components/ErrorBoundary.tsx
@@ -8,10 +8,6 @@ type Props = {
8
export class ErrorBoundary extends Component<Props> {
9
state = {err: undefined}
10
11
- constructor(props: Props) {
12
- super(props)
13
- }
14
-
15
static getDerivedStateFromError(err: any) {
16
return {err}
17
}
packages/connect-react/src/hooks/form-context.tsx
@@ -194,7 +194,7 @@ export const FormContextProvider: React.FC<FormContextProviderProps> = ({ childr
194
195
} else {
196
if (prop.type === "integer" && typeof value !== "number") {
197
- newConfiguredProps[prop.name] = undefined // XXX check this deletes
+ delete newConfiguredProps[prop.name]
198
199
newConfiguredProps[prop.name] = value
200
0 commit comments