@bento-core/table 1.0.1-ccdihub.112 → 1.0.1-ccdihub.113

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.
@@ -228,6 +228,7 @@ const CPIModal = _ref => {
228
228
  const dropdownRef = (0, _react.useRef)(null);
229
229
  const participantId = row.participant_id;
230
230
  const studyId = row.study_id;
231
+ const cpiData = row.cpi_data;
231
232
  (0, _react.useEffect)(() => {
232
233
  setData(row.cpi_data);
233
234
  }, [row]);
@@ -298,7 +299,7 @@ const CPIModal = _ref => {
298
299
  size: 'xl',
299
300
  clsName: 'container_header',
300
301
  items: [{
301
- participantIds: data,
302
+ participantIds: cpiData,
302
303
  title: 'ADD ALL FILES FOR PARTICIPANT',
303
304
  clsName: 'add_all_button',
304
305
  role: 'ADD_ALL_FILES',
@@ -637,7 +638,6 @@ const CPIModal = _ref => {
637
638
  }))), /*#__PURE__*/_react.default.createElement(_core.Button, {
638
639
  style: viewInExploreButton,
639
640
  onClick: () => {
640
- onClose();
641
641
  window.location.href = "/explore?p_id=".concat(participantId, "&dbgap_accession=").concat(studyId);
642
642
  },
643
643
  disableRipple: true
@@ -679,8 +679,8 @@ const CPIModal = _ref => {
679
679
  }, /*#__PURE__*/_react.default.createElement(_core.Button, {
680
680
  style: goToCartButton,
681
681
  onClick: () => {
682
- onClose();
683
682
  window.location.href = '/fileCentricCart';
683
+ setDropdownOpen(false);
684
684
  },
685
685
  disableRipple: true
686
686
  }, "GO TO CART"))))))), /*#__PURE__*/_react.default.createElement("div", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bento-core/table",
3
- "version": "1.0.1-ccdihub.112",
3
+ "version": "1.0.1-ccdihub.113",
4
4
  "main": "dist/index.js",
5
5
  "scripts": {
6
6
  "build": "npm run lint && cross-env-shell rm -rf dist && NODE_ENV=production BABEL_ENV=es babel src --out-dir dist --copy-files",
@@ -235,6 +235,7 @@ const CPIModal = ({
235
235
 
236
236
  const participantId = row.participant_id;
237
237
  const studyId = row.study_id;
238
+ const cpiData = row.cpi_data;
238
239
 
239
240
  useEffect(() => {
240
241
  setData(row.cpi_data);
@@ -318,7 +319,7 @@ const CPIModal = ({
318
319
  clsName: 'container_header',
319
320
  items: [
320
321
  {
321
- participantIds: data,
322
+ participantIds: cpiData,
322
323
  title: 'ADD ALL FILES FOR PARTICIPANT',
323
324
  clsName: 'add_all_button',
324
325
  role: 'ADD_ALL_FILES',
@@ -681,7 +682,6 @@ const CPIModal = ({
681
682
  <Button
682
683
  style={viewInExploreButton}
683
684
  onClick={() => {
684
- onClose();
685
685
  window.location.href = `/explore?p_id=${participantId}&dbgap_accession=${studyId}`;
686
686
  }}
687
687
  disableRipple
@@ -734,8 +734,8 @@ const CPIModal = ({
734
734
  <Button
735
735
  style={goToCartButton}
736
736
  onClick={() => {
737
- onClose();
738
737
  window.location.href = '/fileCentricCart';
738
+ setDropdownOpen(false);
739
739
  }}
740
740
  disableRipple
741
741
  >