@vonaffenfels/slate-editor 1.1.14 → 1.1.17

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": "@vonaffenfels/slate-editor",
3
- "version": "1.1.14",
3
+ "version": "1.1.17",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -46,7 +46,7 @@
46
46
  "html-webpack-plugin": "^5.3.1",
47
47
  "mini-css-extract-plugin": "^1.5.0",
48
48
  "path-browserify": "^1.0.1",
49
- "postcss": "8.4.14",
49
+ "postcss": "^8",
50
50
  "postcss-import": "^15.1.0",
51
51
  "postcss-loader": "^5.2.0",
52
52
  "react": "^18.2.0",
@@ -72,7 +72,7 @@
72
72
  "cssnano": "^5.0.1",
73
73
  "escape-html": "^1.0.3"
74
74
  },
75
- "gitHead": "105cece6edc0d564f2c1af57a0516f9f99f82e33",
75
+ "gitHead": "4c4cc2b038b5740006ec2485410cb2f926da27f1",
76
76
  "publishConfig": {
77
77
  "access": "public"
78
78
  }
@@ -55,9 +55,16 @@ export const SidebarEditorField = ({
55
55
  <option key={`select-option-${value}`} value={value}>{value}</option>
56
56
  ));
57
57
  } else {
58
- return Object.keys(field.control.options).map(key => (
59
- <option key={`select-option-${key}`} value={field.control.options[key]}>{key}</option>
60
- ));
58
+ return Object.keys(field.control.options).map(key => {
59
+ // Prevents false values being a string, e.g. "false"
60
+ if (!field.control.options[key]) {
61
+ field.control.options[key] = "";
62
+ }
63
+
64
+ return (
65
+ <option key={`select-option-${key}`} value={field.control.options[key]}>{key}</option>
66
+ );
67
+ });
61
68
  }
62
69
  };
63
70