Merge pull request #4390 from urbit/lf/search-fixes

ShipSearch: fix incomplete ship entry case
This commit is contained in:
matildepark 2021-02-08 20:05:21 -05:00 committed by GitHub
commit 2be1ee807b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -162,7 +162,8 @@ export function ShipSearch<I extends string, V extends Value<I>>(
<FieldArray
name={id}
render={(arrayHelpers) => {
const onAdd = () => {
const onAdd = (ship: string) => {
setFieldValue(name(), ship);
inputIdx.current += 1;
arrayHelpers.push("");
};