ywana-core8 0.0.449 → 0.0.450

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ywana-core8",
3
- "version": "0.0.449",
3
+ "version": "0.0.450",
4
4
  "description": "ywana-core8",
5
5
  "homepage": "https://ywana.github.io/workspace",
6
6
  "author": "Ernesto Roldan Garcia",
@@ -140,8 +140,8 @@ export class ContentType {
140
140
 
141
141
  case TYPES.ENTITY:
142
142
 
143
- if (optional === true) console.log('OPTIONAL', field, entryData);
144
- if (optional === true && entryData === null) break;
143
+ if (optional === true) console.log('OPTIONAL', field, !entryData);
144
+ if (optional === true && !entryData) break;
145
145
 
146
146
  const child1 = new ContentType(item)
147
147
  next[name] = child1.value(entryData)