Skip to content

Commit

Permalink
update always
Browse files Browse the repository at this point in the history
  • Loading branch information
Robbie1977 committed Jun 15, 2020
1 parent f0dfce9 commit d373cbf
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions components/interface/VFBStackViewer/VFBStackViewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ export default class VFBStackViewer extends React.Component {

updateStackWidget () {
this.addSlices(this.getSliceInstances());
this.forceUpdate();
}

updateCanvasRef (newRef) {
Expand Down Expand Up @@ -123,12 +122,10 @@ export default class VFBStackViewer extends React.Component {
console.log('Adding ' + instances.length + ' instances to ' + this.data.instances.length);
}
this.data.instances = arrayUnique(this.data.instances.concat(instances));
if (curr != this.data.instances.length){
console.log('Passing ' + this.data.instances.length + ' instances');
this.setState({ data: this.data }, () => {
this.forceUpdate();
});
}
console.log('Passing ' + this.data.instances.length + ' instances');
this.setState({ data: this.data }, () => {
this.forceUpdate();
});
}

removeSlice (path) {
Expand Down

0 comments on commit d373cbf

Please sign in to comment.