Skip to content

Commit

Permalink
Merge pull request #34 from MigGonzalez/collectionsTwo
Browse files Browse the repository at this point in the history
Added Settimeout bufffer to send collection fxn
  • Loading branch information
jasonligg authored Dec 16, 2020
2 parents 4ffba10 + 5f1c3e4 commit 7966d96
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
6 changes: 4 additions & 2 deletions src/client/components/containers/ReqResContainer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,10 @@ const ReqResContainer = (props) => {
type="button"
onClick={() => {
for (let i = 0; i < reqResArray.length; i++) {
ReqResCtrl.openReqRes(reqResArray[i].id);
dispatch(actions.saveCurrentResponseData(reqResArray[i]));
setTimeout(function(){
ReqResCtrl.openReqRes(reqResArray[i].id);
dispatch(actions.saveCurrentResponseData(reqResArray[i]));
}, 800);
}
}}
>
Expand Down
7 changes: 0 additions & 7 deletions src/client/controllers/reqResController.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,13 +148,6 @@ const connectionController = {
clearAllGraph() {
store.default.dispatch(actions.clearAllGraph());
},
// //check to see if reqRes has a request -- might delete, miguel
// collectionCheck() {
// console.log('cc ran!');
// let { reqResArray } = store.default.getState().business;
// if (reqResArray.length > 0) return false;
// return true;
// }
};

export default connectionController;

0 comments on commit 7966d96

Please sign in to comment.