fixed: se aggiungo una Provincia sul frontend non si aggiungeva

This commit is contained in:
Surya Paolo
2023-11-24 17:52:17 +01:00
parent 7b14c09fd5
commit c92dc8f216
4 changed files with 29 additions and 7 deletions

View File

@@ -360,7 +360,7 @@ router.post('/settable', authenticate, async (req, res) => {
const mytablestrutt = globalTables.getTableByTableName(params.table);
if (mydata['_id'] !== undefined && mydata['_id'] !== 0) {
if (mydata['_id'] !== undefined && mydata['_id'] !== 0 && mydata['_id'] !== '') {
mytablerec.isNew = false;
}