fix editingsrows

This commit is contained in:
Léo 2025-02-03 15:01:54 +01:00
parent 8bd4c8d2c3
commit 554f82570f
2 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,6 @@
const { isAuth,userInfo,logout } = useAuth(); const { isAuth,userInfo,logout } = useAuth();
const getMenuItems = () =>{ const getMenuItems = () =>{
console.log(isAuth.value)
if(isAuth.value){ if(isAuth.value){
return [ return [
{ {

View File

@ -97,6 +97,7 @@ async function onRowEditSave(event) {
async function removeWarehouse(id) { async function removeWarehouse(id) {
try { try {
await deleteWarehouse(id); await deleteWarehouse(id);
editingRows.value = [];
warehouses.value = await getWarehouses(); warehouses.value = await getWarehouses();
toast.add({ severity: 'success', life: 2500, summary: 'Succès', detail: 'Entrepôt supprimé' }); toast.add({ severity: 'success', life: 2500, summary: 'Succès', detail: 'Entrepôt supprimé' });
} catch (error) { } catch (error) {