Skip to content

Commit

Permalink
datagrid not refreshed when perform mass actions.
Browse files Browse the repository at this point in the history
  • Loading branch information
suraj-webkul committed Aug 30, 2024
1 parent 13623e3 commit 73e5944
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -171,12 +171,12 @@ class="icon-cross-large cursor-pointer rounded-md p-1 text-2xl text-gray-600 tra
.then((response) => {
this.$emitter.emit('add-flash', { type: 'success', message: response.data.message });
this.$parent.get();
this.$parent.$parent.get();
})
.catch((error) => {
this.$emitter.emit('add-flash', { type: 'error', message: error.response.data.message });
this.$parent.get();
this.$parent.$parent.get();
});
break;
Expand All @@ -191,15 +191,15 @@ class="icon-cross-large cursor-pointer rounded-md p-1 text-2xl text-gray-600 tra
/**
* Need to check reason why this.$emit('massActionSuccess') not emitting.
*/
this.$parent.get();
this.$parent.$parent.get();
})
.catch((error) => {
this.$emitter.emit('add-flash', { type: 'error', message: error.response.data.message });
/**
* Need to check reason why this.$emit('massActionSuccess') not emitting.
*/
this.$parent.get();
this.$parent.$parent.get();
});
break;
Expand Down

0 comments on commit 73e5944

Please # to comment.