Skip to content

Commit

Permalink
stagger loading
Browse files Browse the repository at this point in the history
  • Loading branch information
Robbie1977 committed Feb 19, 2021
1 parent 4dd1b58 commit c6352d3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/VFBMain.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ class VFBMain extends React.Component {
this.refs.querybuilderRef.open();
}

addVfbId (idsList) {
async addVfbId (idsList) {
if (this.state.modelLoaded === true) {
if (typeof (idsList) == "string") {
if (idsList.indexOf(',') > -1) {
Expand All @@ -170,6 +170,7 @@ class VFBMain extends React.Component {
idsList.splice($.inArray(idsList[singleId], idsList), 1);
this.vfbLoadBuffer.splice($.inArray(idsList[singleId], this.vfbLoadBuffer), 1);
}
await new Promise(r => setTimeout(r, 2000));
}
if (idsList.length > 0) {
this.props.vfbLoadId(idsList);
Expand Down

0 comments on commit c6352d3

Please sign in to comment.