@carbon/ibm-products 2.43.2-canary.229 → 2.43.2-canary.230

Sign up to get free protection for your applications and to get access to all the features.
@@ -48,7 +48,7 @@ var useNestedRowExpander = function useNestedRowExpander(hooks) {
48
48
  row.toggleRowExpanded();
49
49
  lastExpandedRowIndex.current = row.id;
50
50
  if (row.isExpanded) {
51
- _context.next = 14;
51
+ _context.next = 15;
52
52
  break;
53
53
  }
54
54
  _context.prev = 4;
@@ -59,27 +59,31 @@ var useNestedRowExpander = function useNestedRowExpander(hooks) {
59
59
  depth: row.depth,
60
60
  index: row.index
61
61
  });
62
- _context.next = 8;
62
+ if (!getAsyncSubRows) {
63
+ _context.next = 9;
64
+ break;
65
+ }
66
+ _context.next = 9;
63
67
  return getAsyncSubRows === null || getAsyncSubRows === void 0 ? void 0 : getAsyncSubRows(row);
64
- case 8:
68
+ case 9:
65
69
  handleDynamicRowCheck({
66
70
  dispatch: dispatch,
67
71
  status: 'finish',
68
72
  rowId: row.id
69
73
  });
70
- _context.next = 14;
74
+ _context.next = 15;
71
75
  break;
72
- case 11:
73
- _context.prev = 11;
76
+ case 12:
77
+ _context.prev = 12;
74
78
  _context.t0 = _context["catch"](4);
75
79
  console.log({
76
80
  error: _context.t0
77
81
  });
78
- case 14:
82
+ case 15:
79
83
  case "end":
80
84
  return _context.stop();
81
85
  }
82
- }, _callee, null, [[4, 11]]);
86
+ }, _callee, null, [[4, 12]]);
83
87
  }));
84
88
  function onClick(_x) {
85
89
  return _onClick.apply(this, arguments);
@@ -57,7 +57,7 @@ var useNestedRowExpander = function useNestedRowExpander(hooks) {
57
57
  row.toggleRowExpanded();
58
58
  lastExpandedRowIndex.current = row.id;
59
59
  if (row.isExpanded) {
60
- _context.next = 14;
60
+ _context.next = 15;
61
61
  break;
62
62
  }
63
63
  _context.prev = 4;
@@ -68,27 +68,31 @@ var useNestedRowExpander = function useNestedRowExpander(hooks) {
68
68
  depth: row.depth,
69
69
  index: row.index
70
70
  });
71
- _context.next = 8;
71
+ if (!getAsyncSubRows) {
72
+ _context.next = 9;
73
+ break;
74
+ }
75
+ _context.next = 9;
72
76
  return getAsyncSubRows === null || getAsyncSubRows === void 0 ? void 0 : getAsyncSubRows(row);
73
- case 8:
77
+ case 9:
74
78
  stateReducer.handleDynamicRowCheck({
75
79
  dispatch: dispatch,
76
80
  status: 'finish',
77
81
  rowId: row.id
78
82
  });
79
- _context.next = 14;
83
+ _context.next = 15;
80
84
  break;
81
- case 11:
82
- _context.prev = 11;
85
+ case 12:
86
+ _context.prev = 12;
83
87
  _context.t0 = _context["catch"](4);
84
88
  console.log({
85
89
  error: _context.t0
86
90
  });
87
- case 14:
91
+ case 15:
88
92
  case "end":
89
93
  return _context.stop();
90
94
  }
91
- }, _callee, null, [[4, 11]]);
95
+ }, _callee, null, [[4, 12]]);
92
96
  }));
93
97
  function onClick(_x) {
94
98
  return _onClick.apply(this, arguments);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@carbon/ibm-products",
3
3
  "description": "Carbon for IBM Products",
4
- "version": "2.43.2-canary.229+af6cf147f",
4
+ "version": "2.43.2-canary.230+7390b5542",
5
5
  "license": "Apache-2.0",
6
6
  "main": "lib/index.js",
7
7
  "module": "es/index.js",
@@ -120,5 +120,5 @@
120
120
  "react": "^16.8.6 || ^17.0.1 || ^18.2.0",
121
121
  "react-dom": "^16.8.6 || ^17.0.1 || ^18.2.0"
122
122
  },
123
- "gitHead": "af6cf147f759f344173baf3350095c319398fe2d"
123
+ "gitHead": "7390b55425aaf1ceff75056bcb81e2d09d61c118"
124
124
  }