@websolutespa/payload-plugin-bowl 1.9.1 → 1.9.2

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @websolutespa/payload-plugin-bowl
2
2
 
3
+ ## 1.9.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Fixing: empty EmailConfig action select options
8
+
3
9
  ## 1.9.1
4
10
 
5
11
  ### Patch Changes
package/dist/index.js CHANGED
@@ -7102,10 +7102,20 @@ var EmailConfig = /* @__PURE__ */ __name((options2) => ({
7102
7102
  {
7103
7103
  type: "select",
7104
7104
  name: "action",
7105
- options: options2.actions.map((slug) => ({
7106
- value: slug,
7107
- label: slug
7108
- }))
7105
+ options: (() => {
7106
+ const selectOptions = options2.actions.map((slug) => ({
7107
+ value: slug,
7108
+ label: slug
7109
+ }));
7110
+ if (selectOptions.length > 0) {
7111
+ return selectOptions;
7112
+ } else {
7113
+ return [{
7114
+ value: "",
7115
+ label: "none"
7116
+ }];
7117
+ }
7118
+ })()
7109
7119
  },
7110
7120
  {
7111
7121
  type: "withText",
@@ -7708,9 +7718,20 @@ var Template = /* @__PURE__ */ __name((options2) => ({
7708
7718
  admin: {
7709
7719
  isClearable: true
7710
7720
  },
7711
- options: options2.pages.map((slug) => {
7712
- return { value: slug, label: slug };
7713
- })
7721
+ options: (() => {
7722
+ const selectOptions = options2.pages.map((slug) => ({
7723
+ value: slug,
7724
+ label: slug
7725
+ }));
7726
+ if (selectOptions.length > 0) {
7727
+ return selectOptions;
7728
+ } else {
7729
+ return [{
7730
+ value: "",
7731
+ label: "none"
7732
+ }];
7733
+ }
7734
+ })()
7714
7735
  },
7715
7736
  // !!! todo withCheckbox ?
7716
7737
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@websolutespa/payload-plugin-bowl",
3
- "version": "1.9.1",
3
+ "version": "1.9.2",
4
4
  "description": "Bowl PayloadCms plugin of the BOM Repository",
5
5
  "keywords": [
6
6
  "payload",