- aggiornato carrello e bottoni sul catalogo

This commit is contained in:
Surya Paolo
2025-06-12 10:08:13 +02:00
parent 25377090c1
commit 133dc6a502
7 changed files with 102 additions and 117 deletions

View File

@@ -430,7 +430,7 @@ router.post('/settable', authenticate, async (req, res) => {
} else {
if (
(mydata['_id'] === undefined || mydata['_id'] === '' || (mytablerec.isNew && mydata['_id'] === 0)) &&
(mytablerec._id === undefined || mytablerec._id === '0')
(mytablerec._id === undefined || mytablerec._id === '0'|| mytablerec._id === 0)
) {
mytablerec._id = new ObjectId();
mydata._id = new ObjectId();