@homefile/components-v2 2.14.27 → 2.14.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10,7 +10,6 @@ export const AIGridField = ({ children, onAISend, onRemove, onUpload, }) => {
10
10
  const [file, setFile] = useState(undefined);
11
11
  const { watch } = useFormContext();
12
12
  const textChild = children === null || children === void 0 ? void 0 : children.find(({ type }) => type === 'text' || type === 'string');
13
- console.log('text', textChild);
14
13
  const textProps = {
15
14
  id: (_a = textChild === null || textChild === void 0 ? void 0 : textChild.id) !== null && _a !== void 0 ? _a : '',
16
15
  value: (_b = textChild === null || textChild === void 0 ? void 0 : textChild.value) !== null && _b !== void 0 ? _b : '',
@@ -51,7 +51,6 @@ export const useDynamicForm = ({ fields, onUpload }) => {
51
51
  };
52
52
  useEffect(() => {
53
53
  handleSetDefaultValues(fields);
54
- setStateFields(fields);
55
54
  }, [fields]);
56
55
  return {
57
56
  form,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@homefile/components-v2",
3
- "version": "2.14.27",
3
+ "version": "2.14.28",
4
4
  "author": "Homefile",
5
5
  "license": "UNLICENSED",
6
6
  "typings": "dist/index.d.ts",
@@ -19,8 +19,6 @@ export const AIGridField = ({
19
19
  ({ type }) => type === 'text' || type === 'string'
20
20
  )
21
21
 
22
- console.log('text', textChild)
23
-
24
22
  const textProps = {
25
23
  id: textChild?.id ?? '',
26
24
  value: textChild?.value ?? '',
@@ -18,6 +18,7 @@ export const useDynamicForm = ({ fields, onUpload }: UseDynamicFormI) => {
18
18
  const visibleFields = stateFields.filter(
19
19
  (field) => field.visible || field.visible === undefined
20
20
  )
21
+
21
22
  const hiddenFields = stateFields.filter((field) => field.visible === false)
22
23
 
23
24
  const form = useForm()
@@ -90,7 +91,6 @@ export const useDynamicForm = ({ fields, onUpload }: UseDynamicFormI) => {
90
91
 
91
92
  useEffect(() => {
92
93
  handleSetDefaultValues(fields)
93
- setStateFields(fields)
94
94
  }, [fields])
95
95
 
96
96
  return {