Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
dmason30 committed Jul 18, 2023
1 parent 7f688ef commit 08892ba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion dist/js/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 2 additions & 4 deletions resources/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,9 @@ Nova.bootingCallbacks.unshift((app) => {
},
methods: {
addCardPollingIntervalListener() {
this.removeCardPollingIntervalListener();
if (this.$props?.card?.pollingInterval && typeof this.fetch === 'function') {
this.removeCardPollingIntervalListener();
this.pollingListener = setInterval(() => {
this.fetch();
}, this.$props?.card?.pollingInterval);
this.pollingListener = setInterval(this.fetch, this.$props.card.pollingInterval);
}
},
removeCardPollingIntervalListener() {
Expand Down

0 comments on commit 08892ba

Please sign in to comment.