Skip to content

Commit

Permalink
Merge pull request #17 from qlik-oss/QB-2938/blank-waterfall-export
Browse files Browse the repository at this point in the history
fix: return promise for export/download to await
  • Loading branch information
Caele authored Dec 2, 2020
2 parents 0f03639 + 819f0fe commit 5daa1a7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/paint.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import ThemeManager from './theme';
import ThemeManager from "./theme";

export default function($element, layout) {
export default function ($element, layout) {
let app = this.$scope.qlik.currApp(this);
let isEditMode = this.$scope.options.interactionState === 2;
this.$scope.updatedData(layout, isEditMode, true);
app.theme.getApplied().then(qTheme => {
return app.theme.getApplied().then(async (qTheme) => {
this.$scope.theme = qTheme;
ThemeManager.setAppTheme(this.$scope.theme);

this.$scope.updatedData(layout, isEditMode, true);
await this.$scope.updatedData(layout, isEditMode, true);
return this.$scope.qlik.Promise.resolve();
});
}

0 comments on commit 5daa1a7

Please sign in to comment.