Skip to content

Commit

Permalink
Always set loading to true by default.
Browse files Browse the repository at this point in the history
  • Loading branch information
jesseleite committed Oct 4, 2024
1 parent ed79779 commit 3356f89
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions resources/js/components/reporting/Report.vue
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export default {
data() {
return {
loading: false,
loading: true,
report: this.initialReport,
selected: null
}
Expand Down Expand Up @@ -156,8 +156,6 @@ export default {
methods: {
load() {
this.loading = true;
Statamic.$request.get(cp_url(`seo-pro/reports/${this.id}`)).then(response => {
if (response.data.status === 'pending' || response.data.status === 'generating') {
setTimeout(() => this.load(), 1000);
Expand Down

0 comments on commit 3356f89

Please sign in to comment.