Fix time entry and missing data display

This commit is contained in:
april
2024-01-05 12:16:34 -06:00
parent ed490803cb
commit 918a705c4c
3 changed files with 38 additions and 17 deletions

View File

@@ -27,7 +27,7 @@ function IntInput({
onClick={() => form.setFieldValue(field, "")}
style={{
display:
["", null].indexOf(form.getTransformedValues()[field_key]) > -1
["", null].indexOf(form.getTransformedValues()[field_key]) === 0
? "none"
: undefined,
}}
@@ -63,7 +63,7 @@ function ZeroIntInput({
onClick={() => form.setFieldValue(field, 0)}
style={{
display:
form.getTransformedValues()[field_key] > 0 ? "none" : undefined,
form.getTransformedValues()[field_key] === 0 ? "none" : undefined,
}}
/>
}