cleanup
This commit is contained in:
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user