@bchr/bchr-front-lib 0.5.7 → 0.5.8

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.
@@ -479,13 +479,13 @@ var buildActionButton = function buildActionButton(props, subActionButton, inner
479
479
  };
480
480
 
481
481
  buttonProps.onClick = function () {
482
- if (_utils.Values.isBlankString(checkField) || _utils.Values.isEmptyArray(checkData)) {
482
+ if (_utils.Values.isBlankString(checkField) || _utils.Values.isNull(checkData)) {
483
483
  throw new Error("Please enter the check field and table data before transmitting the check field and table data");
484
484
  }
485
485
 
486
486
  var checkedNames = [];
487
487
 
488
- if (_utils.Values.isNotEmpty(checkField) && _utils.Values.isNotNull(checkData)) {
488
+ if (_utils.Values.isNotBlankString(checkField) && _utils.Values.isNotEmptyArray(checkData)) {
489
489
  if (Array.isArray(checkData)) {
490
490
  var selectedData = checkData.filter(function (item) {
491
491
  return item.selected;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bchr/bchr-front-lib",
3
- "version": "0.5.7",
3
+ "version": "0.5.8",
4
4
  "description": "bchr front lib",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
@@ -400,12 +400,12 @@ const buildActionButton = function(props, subActionButton, innerLine) {
400
400
  okButtonProps : {type: buttonProps.type, theme : "solid", icon: <CheckOutlined />}
401
401
  };
402
402
  buttonProps.onClick = function() {
403
- if (Values.isBlankString(checkField) || Values.isEmptyArray(checkData)) {
403
+ if (Values.isBlankString(checkField) || Values.isNull(checkData)) {
404
404
  throw new Error("Please enter the check field and table data before transmitting the check field and table data");
405
405
  }
406
406
 
407
407
  let checkedNames = [];
408
- if (Values.isNotEmpty(checkField) && Values.isNotNull(checkData)) {
408
+ if (Values.isNotBlankString(checkField) && Values.isNotEmptyArray(checkData)) {
409
409
  if (Array.isArray(checkData)) {
410
410
  let selectedData = checkData.filter(item => item.selected);
411
411
  if (Values.isNotEmptyArray(selectedData)) {