Skip to content

Commit b57ecf8

Browse files
committed
some fixes
1 parent a1b0de7 commit b57ecf8

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

packages/connect-react/src/components/ErrorBoundary.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@ type Props = {
88
export class ErrorBoundary extends Component<Props> {
99
state = {err: undefined}
1010

11-
constructor(props: Props) {
12-
super(props)
13-
}
14-
1511
static getDerivedStateFromError(err: any) {
1612
return {err}
1713
}

packages/connect-react/src/hooks/form-context.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ export const FormContextProvider: React.FC<FormContextProviderProps> = ({ childr
194194
}
195195
} else {
196196
if (prop.type === "integer" && typeof value !== "number") {
197-
newConfiguredProps[prop.name] = undefined // XXX check this deletes
197+
delete newConfiguredProps[prop.name]
198198
} else {
199199
newConfiguredProps[prop.name] = value
200200
}

0 commit comments

Comments
 (0)