ywana-core8 0.0.81 → 0.0.82

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.81",
3
+ "version": "0.0.82",
4
4
  "description": "ywana-core8",
5
5
  "author": "Ernesto Roldan Garcia",
6
6
  "license": "MIT",
@@ -17,7 +17,9 @@ export const ContentEditor = ({ content, filter, onChange }) => {
17
17
  const sections = content.sections()
18
18
  return (
19
19
  <div className='content-editor'>
20
- {sections.map((section) => {
20
+ {sections
21
+ .filter(section => section.fields && 0 < section.fileds.length)
22
+ .map((section) => {
21
23
  const { title, fields } = section
22
24
  return (
23
25
  <section key={title}>
@@ -16,7 +16,7 @@ export const TextField = (props) => {
16
16
  function onKeyPress(event) {
17
17
  var key = event.charCode ? event.charCode : event.keyCode ? event.keyCode : 0;
18
18
  if (key == 13) {
19
- onEnter()
19
+ if (onEnter) onEnter()
20
20
  }
21
21
  }
22
22