Skip to content

Commit fd2612e

Browse files
Edit record(input)-completely deleting the string to add new value, the input is removed
1 parent 5e525a0 commit fd2612e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/projects/projectId/edit-records/EditField.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export default function EditField(props: EditFieldProps) {
7373
else setInputValue(props.record.data[props.attribute.name][props.subKey]);
7474
}, [props.record.data[props.attribute.name], props.subKey]);
7575

76-
if (!inputValue) return null;
76+
if (inputValue == null) return null;
7777

7878

7979
return (<>

0 commit comments

Comments
 (0)