IO-1407 Resolve bill not clearing on enter again

This commit is contained in:
Patrick Fic
2021-10-18 13:40:31 -07:00
parent 3d8c390291
commit 0d65f8d894
2 changed files with 2 additions and 4 deletions

View File

@@ -216,7 +216,7 @@ function BillEnterModalContainer({
if (enterAgain) {
form.resetFields();
form.setFieldsValue(formValues);
form.setFieldsValue({ ...form.getFieldsValue(), billlines: [] });
} else {
toggleModalVisible();
}

View File

@@ -148,7 +148,7 @@ export function BillEnterModalLinesComponent({
],
};
},
formInput: (record, index, ...restProp) => (
formInput: (record, index) => (
<CurrencyInput
min={0}
disabled={disabled}
@@ -156,7 +156,6 @@ export function BillEnterModalLinesComponent({
setFieldsValue({
billlines: getFieldsValue("billlines").billlines.map(
(item, idx) => {
console.log("Checking", index, idx, restProp);
if (idx === index) {
console.log(
"Found and setting.",
@@ -493,7 +492,6 @@ const EditableCell = ({
additional,
...restProps
}) => {
console.log(record);
if (additional)
return (
<td {...restProps}>