fix: correct type for tagAutocomplete state in ItemsPage component
This commit is contained in:
parent
a9288c29f7
commit
475dbe03c4
2 changed files with 2 additions and 2 deletions
|
|
@ -180,7 +180,7 @@ export default function ItemRow({
|
|||
setAutocompleteIndex(0);
|
||||
// keep addingTag true so you can add another tag
|
||||
setTimeout(() => {
|
||||
e.target.focus();
|
||||
(e.target as HTMLInputElement).focus();
|
||||
}, 0);
|
||||
}
|
||||
return;
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ export default function ItemsPage() {
|
|||
const [adding, setAdding] = useState(false);
|
||||
|
||||
const inputRef = useRef<HTMLInputElement>(null);
|
||||
const [tagAutocomplete, setTagAutocomplete] = useState<{name: string, id: string}[]>([]);
|
||||
const [tagAutocomplete, setTagAutocomplete] = useState<Tag[]>([]);
|
||||
const [autocompleteActive, setAutocompleteActive] = useState(false);
|
||||
const [autocompleteIndex, setAutocompleteIndex] = useState(0);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue