@fileverse-dev/fortune-core 1.2.78-cf-1 → 1.2.78-cf-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.
@@ -155,6 +155,10 @@ export function setConditionRules(ctx, protection, generalDialog, conditionforma
155
155
  }
156
156
  } else if (rangeArr.length === 0) {
157
157
  if (_.isNaN(v) || v === "") {
158
+ if (v === "") {
159
+ ctx.warnDialog = "Value is required";
160
+ return;
161
+ }
158
162
  ctx.warnDialog = conditionformat.conditionValueCanOnly;
159
163
  return;
160
164
  }
@@ -170,6 +170,10 @@ function setConditionRules(ctx, protection, generalDialog, conditionformat, rule
170
170
  }
171
171
  } else if (rangeArr.length === 0) {
172
172
  if (_lodash.default.isNaN(v) || v === "") {
173
+ if (v === "") {
174
+ ctx.warnDialog = "Value is required";
175
+ return;
176
+ }
173
177
  ctx.warnDialog = conditionformat.conditionValueCanOnly;
174
178
  return;
175
179
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fileverse-dev/fortune-core",
3
- "version": "1.2.78-cf-1",
3
+ "version": "1.2.78-cf-2",
4
4
  "main": "lib/index.js",
5
5
  "module": "es/index.js",
6
6
  "typings": "lib/index.d.ts",