ar-design 0.4.35 → 0.4.36

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.
@@ -117,7 +117,7 @@ const useValidation = function (data, params, step) {
117
117
  param.shape?.forEach((s) => {
118
118
  const key = getKey(param.subkey);
119
119
  if (param.where) {
120
- if (s.type === "required" && Utils.IsNullOrEmpty(value) && param.where(data)) {
120
+ if (s.type === "required" && !Utils.IsNullOrEmpty(value) && param.where(data)) {
121
121
  setError(param.subkey ? key : param.key, s.message, param.step);
122
122
  }
123
123
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ar-design",
3
- "version": "0.4.35",
3
+ "version": "0.4.36",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",