Skip to content

Commit 0461864

Browse files
Linting
1 parent 313efc6 commit 0461864

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { useCustomize } from "../hooks/customization-context";
77
export function ControlArray() {
88
const formFieldContextProps = useFormFieldContext();
99
const {
10-
id, onChange, prop, value,
10+
onChange, prop, value,
1111
} = formFieldContextProps;
1212
const {
1313
getProps, theme,
@@ -52,7 +52,7 @@ export function ControlArray() {
5252
return;
5353
}
5454

55-
onChange(validValues);
55+
onChange(validValues as any);
5656
};
5757

5858
const handleValueChange = (index: number, newValue: string) => {

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ type KeyValuePair = {
1212
export function ControlObject() {
1313
const formFieldContextProps = useFormFieldContext();
1414
const {
15-
id, onChange, prop, value,
15+
onChange, prop, value,
1616
} = formFieldContextProps;
1717
const {
1818
getProps, theme,
@@ -159,7 +159,7 @@ export function ControlObject() {
159159
}
160160
});
161161

162-
onChange(obj);
162+
onChange(obj as any);
163163
};
164164

165165
const handlePairChange = (index: number, field: "key" | "value", newValue: string) => {

0 commit comments

Comments
 (0)