MUI data grid not rendering the MUI textfield but it rendering MUi select in rows

The following code

import React from 'react';
import { useForm, Controller, useFieldArray } from 'react-hook-form';
import { zodResolver } from '@hookform/resolvers/zod';
import { Select, MenuItem, TextField, Button } from '@mui/material';
import { DataGrid } from '@mui/x-data-grid';
import * as z from 'zod';

// Define Zod schema
const nestedSchema = z.object({
  file: z.string().nonempty("File is required"),
  start: z.string().nonempty("Start is required"),
  value: z.string().nonempty("Value is required"),
  delimiter: z.string().nonempty("Delimiter is required"),
});

const schema = z.object({
  fieldId: z.string().nonempty("Field ID is required"),
  fileName: z.string().nonempty("File Name is required"),
  nestedArray: z.array(nestedSchema),
});

const App = () => {
  const { control, handleSubmit, setValue, watch } = useForm({
    resolver: zodResolver(schema),
    defaultValues: {
      fieldId: '',
      fileName: '',
      nestedArray: [{ file: '', start: '', value: '', delimiter: '' }],
    },
  });

  const { fields, append } = useFieldArray({
    control,
    name: 'nestedArray',
  });

  const onSubmit = (data) => {
    console.log(data);
  };

  

  const columns = [
    { field: 'fieldId', headerName: 'Field ID', width: 150 },
    { field: 'fileName', headerName: 'File Name', width: 150 },
    {
      field: 'nestedArray',
      headerName: 'Nested Array',
      width: 400,
      renderCell: (params) => (
        <div>
          {params.value.map((item, index) => (
            <div key={index}>
              <Controller
                name={`nestedArray.${index}.file`}
                control={control}
                render={({ field }) => (
                  <Select {...field} fullWidth>
                    <MenuItem value="">Select File</MenuItem>
                    <MenuItem value="file1">File 1</MenuItem>
                    <MenuItem value="file2">File 2</MenuItem>
                  </Select>
                )}
              />
              <Controller
                name={`nestedArray.${index}.start`}
                control={control}
                render={({ field }) => (
                  <Select {...field} fullWidth>
                    <MenuItem value="">Select Start</MenuItem>
                    <MenuItem value="start1">Start 1</MenuItem>
                    <MenuItem value="start2">Start 2</MenuItem>
                  </Select>
                )}
              />
              <Controller
                name={`nestedArray.${index}.value`}
                control={control}
                render={({ field }) => (
                  <TextField
                    {...field}
                    label="Value"
                    fullWidth
                    value={field.value || ''}
                    onChange={(e) => field.onChange(e.target.value)}
                  />
                )}
              />
              <Controller
                name={`nestedArray.${index}.delimiter`}
                control={control}
                render={({ field }) => (
                  <TextField
                    {...field}
                    label="Delimiter"
                    fullWidth
                    value={field.value || ''}
                    onChange={(e) => field.onChange(e.target.value)}
                  />
                )}
              />
            </div>
          ))}
        </div>
      ),
    },
  ];

  return (
    <form onSubmit={handleSubmit(onSubmit)}>
      <Controller
        name="fieldId"
        control={control}
        render={({ field }) => (
          <Select {...field} fullWidth>
            <MenuItem value="">Select Field ID</MenuItem>
            <MenuItem value="field1">Field 1</MenuItem>
            <MenuItem value="field2">Field 2</MenuItem>
          </Select>
        )}
      />
      <Controller
        name="fileName"
        control={control}
        render={({ field }) => (
          <TextField {...field} label="File Name" fullWidth />
        )}
      />
      {fields.map((item, index) => (
        <div key={item.id}>
          <Controller
            name={`nestedArray.${index}.file`}
            control={control}
            render={({ field }) => (
              <Select {...field} fullWidth>
                <MenuItem value="">Select File</MenuItem>
                <MenuItem value="file1">File 1</MenuItem>
                <MenuItem value="file2">File 2</MenuItem>
              </Select>
            )}
          />
          <Controller
            name={`nestedArray.${index}.start`}
            control={control}
            render={({ field }) => (
              <Select {...field} fullWidth>
                <MenuItem value="">Select Start</MenuItem>
                <MenuItem value="start1">Start 1</MenuItem>
                <MenuItem value="start2">Start 2</MenuItem>
              </Select>
            )}
          />
          <Controller
            name={`nestedArray.${index}.value`}
            control={control}
            render={({ field }) => (
              <TextField
                {...field}
                label="Value"
                fullWidth
                value={field.value || ''}
                onChange={(e) => field.onChange(e.target.value)}
              />
            )}
          />
          <Controller
            name={`nestedArray.${index}.delimiter`}
            control={control}
            render={({ field }) => (
              <TextField
                {...field}
                label="Delimiter"
                fullWidth
                value={field.value || ''}
                onChange={(e) => field.onChange(e.target.value)}
              />
            )}
          />
        </div>
      ))}
      <Button type="button" onClick={() => append({ file: '', start: '', value: '', delimiter: '' })}>
        Add Nested Field
      </Button>
      <Button type="submit">Submit</Button>
      <div style={{ height: 400, width: '100%' }}>
        <DataGrid
          columns={columns}
          rows={[
            {
              id: 1,
              fieldId: '',
              fileName: '',
              nestedArray: fields,
            },
          ]}
          pageSize={5}
        />
      </div>
    </form>
  );
};

export default App;

from above code Nested array fields we would be displaying them in MUI data grid in the form rows..
Now here nested Array of fields which are file and start were Mui select drop whenever the user changes the value it is able to render the MUi select but problem with field of value and delimiter where it has MUI text field like input field whenever the user enter value ..entered value getting disappearing from MUI text fields of Value and Delimiter ,even i have put console statement onchange those are not printing and also MUI text field were not rendering ?

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật