zet-lib 1.2.109 → 1.2.110
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.
- package/lib/zRoute.js +1 -1
- package/package.json +1 -1
package/lib/zRoute.js
CHANGED
|
@@ -1918,7 +1918,7 @@ zRoute.listDataTable = async (req, res, objData = {}) => {
|
|
|
1918
1918
|
let buttons = objData.hasOwnProperty('actionButtons') ? objData.actionButtons(levels, row, MYMODEL.table) : zRoute.actionButtons(levels, row, MYMODEL.table)
|
|
1919
1919
|
arr.push(buttons)
|
|
1920
1920
|
} else {
|
|
1921
|
-
let data = objData.hasOwnProperty('
|
|
1921
|
+
let data = objData.hasOwnProperty('dataTableData') ? objData.dataTableData(item, row[item], MYMODEL, relations) : zRoute.dataTableData(item, row[item], MYMODEL, relations, row.id)
|
|
1922
1922
|
arr.push(data)
|
|
1923
1923
|
}
|
|
1924
1924
|
})
|