zet-lib 1.5.3 → 1.5.4

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/Form.js +1 -1
  2. package/package.json +1 -1
package/lib/Form.js CHANGED
@@ -502,7 +502,7 @@ Form.field = (obj) => {
502
502
  //dataObject
503
503
  let leftButtons = ``;
504
504
  let rightButtons = ``;
505
- let all = Object.keys(obj.dataObject);
505
+ let all = obj.dataObject ? Object.keys(obj.dataObject) : [];
506
506
  all.map((item, index) => {
507
507
  if (!value.includes(item)) {
508
508
  rightButtons += `<li><button class="btn btn-danger boxy" type="button">${obj.dataObject[item]}<input type="hidden" name='trashx' value="${item}"></button></li>`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zet-lib",
3
- "version": "1.5.3",
3
+ "version": "1.5.4",
4
4
  "description": "zet is a library that part of zet generator.",
5
5
  "engines": {
6
6
  "node": ">=18"