This commit is contained in:
2026-03-18 22:51:17 -05:00
parent dc07bfc8e0
commit 17b73a4597
8 changed files with 128 additions and 122 deletions
@@ -444,12 +444,16 @@ export function InventoryFormPage({ mode }: InventoryFormPageProps) {
}
}
function forceNavigate(path: string) {
window.location.assign(path);
}
function openSkuMaster() {
navigate("/inventory/sku-master");
forceNavigate("/inventory/sku-master");
}
function closeEditor() {
navigate(mode === "create" ? "/inventory/items" : `/inventory/items/${itemId}`);
forceNavigate(mode === "create" ? "/inventory/items" : `/inventory/items/${itemId}`);
}
return (