({
mode: 'uncontrolled',
initialValues: {
- barcode: 0,
+ barcode: "",
name: "",
brand: "",
statusId: "",
@@ -113,7 +113,7 @@ function EditItem() {
{isFetching ? 'Updating...' : ''}
Edit Item
-
diff --git a/barkmanui/src/features/inventory/types.ts b/barkmanui/src/features/inventory/types.ts
index 4f1c7c4..7439c51 100644
--- a/barkmanui/src/features/inventory/types.ts
+++ b/barkmanui/src/features/inventory/types.ts
@@ -1,6 +1,6 @@
export interface InventoryItem {
id: number,
- barcode: number,
+ barcode: string,
brand: string,
name: string,
status: {id: string; name: string},
@@ -12,7 +12,7 @@ export interface InventoryItem {
}
export interface NewItem {
- barcode: number,
+ barcode: string,
brand: string,
name: string,
serialNumber: string,