Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions resources/js/requests/components/RequestsListing.vue
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ export default {
},
data() {
return {
fetchFlag: 0,
orderBy: "id",
orderDirection: "DESC",
additionalParams: "",
Expand Down Expand Up @@ -426,6 +427,13 @@ export default {
},
)
.then((response) => {
if (response.data.data.length === 0 && this.fetchFlag === 0){
this.page = 1;
this.fetch();
this.fetchFlag = 1;
} else {
this.fetchFlag = 0;
}
Comment thread
CarliPinell marked this conversation as resolved.
Outdated
this.data = this.transform(response.data);
}).catch((error) => {
this.data = [];
Expand Down