diff --git a/packages/Webkul/Admin/src/Resources/views/components/datagrid/toolbar/mass-action.blade.php b/packages/Webkul/Admin/src/Resources/views/components/datagrid/toolbar/mass-action.blade.php index 590b3dde1..c47c44f60 100644 --- a/packages/Webkul/Admin/src/Resources/views/components/datagrid/toolbar/mass-action.blade.php +++ b/packages/Webkul/Admin/src/Resources/views/components/datagrid/toolbar/mass-action.blade.php @@ -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; @@ -191,7 +191,7 @@ 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 }); @@ -199,7 +199,7 @@ 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(); }); break;