Fix tipo de handleChange en ItemForm que rompía el build de producción
El handler se usaba con FormattedField (input/textarea), pero estaba tipado para input/select, lo que hacía fallar tsc -b en el build. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
fe22681c66
commit
182f20d43e
1 file changed
+1
-1
@@ -69,7 +69,7 @@ export default function ItemForm({
|
||||
}, [itemCode]);
|
||||
|
||||
const handleChange = (
|
||||
e: ChangeEvent<HTMLInputElement | HTMLSelectElement>,
|
||||
e: ChangeEvent<HTMLInputElement | HTMLTextAreaElement>,
|
||||
) => {
|
||||
const { name, value, type } = e.target;
|
||||
if (type === "checkbox") {
|
||||
|
||||
Reference in new issue
Block a user