correcion de tipado en equipament_list.tsx
This commit is contained in:
@@ -130,7 +130,7 @@ export function EquipmentList() {
|
||||
<input
|
||||
type="hidden"
|
||||
{...register(`equipmentList.${index}.machine`)}
|
||||
defaultValue={field.machine}
|
||||
defaultValue={field.machine ?? ''}
|
||||
/>
|
||||
{field.machine}
|
||||
</TableCell>
|
||||
@@ -138,7 +138,7 @@ export function EquipmentList() {
|
||||
<input
|
||||
type="hidden"
|
||||
{...register(`equipmentList.${index}.quantity`)}
|
||||
defaultValue={field.quantity}
|
||||
defaultValue={field.quantity ?? ''}
|
||||
/>
|
||||
{field.quantity}
|
||||
</TableCell>
|
||||
|
||||
@@ -438,7 +438,89 @@ export function ProductActivityList() {
|
||||
<input
|
||||
type="hidden"
|
||||
{...register(`productList.${index}.description`)}
|
||||
value={field.description}
|
||||
defaultValue={field.description ?? ''}
|
||||
/>
|
||||
<input
|
||||
type="hidden"
|
||||
{...register(`productList.${index}.dailyCount`)}
|
||||
defaultValue={field.dailyCount ?? ''}
|
||||
/>
|
||||
<input
|
||||
type="hidden"
|
||||
{...register(`productList.${index}.weeklyCount`)}
|
||||
defaultValue={field.weeklyCount ?? ''}
|
||||
/>
|
||||
<input
|
||||
type="hidden"
|
||||
{...register(`productList.${index}.monthlyCount`)}
|
||||
defaultValue={field.monthlyCount ?? ''}
|
||||
/>
|
||||
<input
|
||||
type="hidden"
|
||||
{...register(
|
||||
`productList.${index}.internalDistributionZone`,
|
||||
)}
|
||||
defaultValue={field.internalDistributionZone ?? ''}
|
||||
/>
|
||||
<input
|
||||
type="hidden"
|
||||
{...register(`productList.${index}.internalQuantity`)}
|
||||
defaultValue={field.internalQuantity ?? ''}
|
||||
/>
|
||||
<input
|
||||
type="hidden"
|
||||
{...register(`productList.${index}.internalUnit`)}
|
||||
defaultValue={field.internalUnit ?? ''}
|
||||
/>
|
||||
<input
|
||||
type="hidden"
|
||||
{...register(`productList.${index}.externalCountry`)}
|
||||
defaultValue={field.externalCountry ?? ''}
|
||||
/>
|
||||
<input
|
||||
type="hidden"
|
||||
{...register(`productList.${index}.externalState`)}
|
||||
defaultValue={field.externalState ?? ''}
|
||||
/>
|
||||
<input
|
||||
type="hidden"
|
||||
{...register(`productList.${index}.externalMunicipality`)}
|
||||
defaultValue={field.externalMunicipality ?? ''}
|
||||
/>
|
||||
<input
|
||||
type="hidden"
|
||||
{...register(`productList.${index}.externalParish`)}
|
||||
defaultValue={field.externalParish ?? ''}
|
||||
/>
|
||||
<input
|
||||
type="hidden"
|
||||
{...register(`productList.${index}.externalCity`)}
|
||||
defaultValue={field.externalCity ?? ''}
|
||||
/>
|
||||
<input
|
||||
type="hidden"
|
||||
{...register(`productList.${index}.externalDescription`)}
|
||||
defaultValue={field.externalDescription ?? ''}
|
||||
/>
|
||||
<input
|
||||
type="hidden"
|
||||
{...register(`productList.${index}.externalQuantity`)}
|
||||
defaultValue={field.externalQuantity ?? ''}
|
||||
/>
|
||||
<input
|
||||
type="hidden"
|
||||
{...register(`productList.${index}.externalUnit`)}
|
||||
defaultValue={field.externalUnit ?? ''}
|
||||
/>
|
||||
<input
|
||||
type="hidden"
|
||||
{...register(`productList.${index}.womenCount`)}
|
||||
defaultValue={field.womenCount ?? ''}
|
||||
/>
|
||||
<input
|
||||
type="hidden"
|
||||
{...register(`productList.${index}.menCount`)}
|
||||
defaultValue={field.menCount ?? ''}
|
||||
/>
|
||||
{field.description}
|
||||
</TableCell>
|
||||
|
||||
@@ -154,7 +154,7 @@ export function ProductionList() {
|
||||
<input
|
||||
type="hidden"
|
||||
{...register(`productionList.${index}.supplyType`)}
|
||||
defaultValue={field.supplyType}
|
||||
defaultValue={field.supplyType ?? ''}
|
||||
/>
|
||||
{field.supplyType}
|
||||
</TableCell>
|
||||
@@ -162,12 +162,12 @@ export function ProductionList() {
|
||||
<input
|
||||
type="hidden"
|
||||
{...register(`productionList.${index}.quantity`)}
|
||||
defaultValue={field.quantity}
|
||||
defaultValue={field.quantity ?? ''}
|
||||
/>
|
||||
<input
|
||||
type="hidden"
|
||||
{...register(`productionList.${index}.unit`)}
|
||||
defaultValue={field.unit}
|
||||
defaultValue={field.unit ?? ''}
|
||||
/>
|
||||
{field.quantity} {field.unit}
|
||||
</TableCell>
|
||||
|
||||
Reference in New Issue
Block a user