Skip to content

Commit

Permalink
Increased wait-to-render time for exported list
Browse files Browse the repository at this point in the history
  • Loading branch information
BluuArc committed Aug 21, 2019
1 parent cdccad0 commit a2cb1f3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/Tools/TierListCreator/TierListInputArea.vue
Original file line number Diff line number Diff line change
Expand Up @@ -390,8 +390,9 @@ export default {
this.showGeneratingDialog = true;
await this.transformedSvgConfigPromise;
// allow time for SVG to render
await new Promise(fulfill => setTimeout(() => fulfill(), 1000));
await this.waitUntilTrue(() => !!this.$el.querySelector('svg#tier-list-svg-transformed'));
await new Promise(fulfill => setTimeout(() => fulfill(), 1000))
.then(() => this.waitUntilTrue(() => !!this.$el.querySelector('svg#tier-list-svg-transformed')))
.then(() => new Promise(fulfill => setTimeout(() => fulfill(), 1000)));
try {
this.downloadLink = await this.generateDownloadLink();
this.showGeneratingDialog = false;
Expand Down

0 comments on commit a2cb1f3

Please sign in to comment.