zet-lib 1.3.17 → 1.3.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/zRoute.js +1 -2
  2. package/package.json +1 -1
package/lib/zRoute.js CHANGED
@@ -2118,8 +2118,7 @@ zRoute.listData = async (req, res, MYMODEL, zRole, actionButtonsFn) => {
2118
2118
  let buttons = !actionButtonsFn(levels, row, MYMODEL.table) ? zRoute.actionButtons(levels, row, MYMODEL.table) : actionButtonsFn(levels, row, MYMODEL.table)
2119
2119
  arr.push(buttons)
2120
2120
  } else {
2121
- let data = objData.hasOwnProperty('dataTableData') ? objData.dataTableData(item, row[item], MYMODEL, relations) : zRoute.dataTableData(item, row[item], MYMODEL, relations, row.id)
2122
- arr.push(data)
2121
+ arr.push(zRoute.dataTableData(item, row[item], MYMODEL, relations, row.id))
2123
2122
  }
2124
2123
  })
2125
2124
  datas.push(arr)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zet-lib",
3
- "version": "1.3.17",
3
+ "version": "1.3.18",
4
4
  "description": "zet is a library that part of zet generator.",
5
5
  "engines": {
6
6
  "node": ">=18"