crazy chatgpt working on tablemaps

This commit is contained in:
zadit frontend
2024-07-31 17:31:33 +00:00
parent b32fc0d45d
commit a768324553
5 changed files with 239 additions and 7 deletions

View File

@@ -16,8 +16,8 @@ export async function getTables(shopId) {
return false;
}
const tableDetail = await response.json();
return tableDetail;
const tables = await response.json();
return tables;
} catch (error) {
console.error("Error:", error);
}
@@ -32,7 +32,7 @@ export async function getTable(shopId, tableNo) {
headers: {
"Content-Type": "application/json",
},
},
}
);
if (!response.ok) {