From 78d753c65aef82029c859e980527ae38825da01e Mon Sep 17 00:00:00 2001 From: vidhubk Date: Mon, 11 Aug 2025 15:21:40 +0530 Subject: [PATCH] corrections updated --- src/app/admin/(floor-plan-update)/floor-plan/page.jsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/app/admin/(floor-plan-update)/floor-plan/page.jsx b/src/app/admin/(floor-plan-update)/floor-plan/page.jsx index c3b4d07..169c077 100644 --- a/src/app/admin/(floor-plan-update)/floor-plan/page.jsx +++ b/src/app/admin/(floor-plan-update)/floor-plan/page.jsx @@ -458,8 +458,8 @@ const DineInInner = () => { const handleDelete = async () => { try { - await client.delete(`/Dine360 Table/${deleteConfirm.id}`); - setDeleteConfirm({ show: false, id: null }); + await client.put(`/Dine360 Table/${deleteConfirm.id}`); + setDeleteConfirm({ show: false, id: null, isDeleted: null }); getTableData(selectedRoom); } catch (error) { console.error("Delete error:", error); @@ -578,7 +578,7 @@ const DineInInner = () => { getTableData(room.name); }} > -
+
{ room?.isdeleted == 1 && () } @@ -1176,7 +1176,7 @@ const DineInInner = () => { >

- {floorDeleteConfirm?.isDeleted === 0 + {deleteConfirm?.isDeleted === 0 ? "Are you sure you want to set this table as Delete?" : "Are you sure you want to set this table as Restore?"}