I created a delete button, which allows the user to delete a line.
The problem is that after the deletion, the user does not get any confirm that the deletion was performed.
I tried to use “after remove” webhook that looked like this -
import wixLocation from ‘wix-location’
export function PositionsManagement_afterRemove(item, context) {
//TODO: write your code here…
console.log(‘PositionsManagement_afterRemove’);
wixLocation.to(‘/thank-you-page’);
}
But still nothing happens and until you refresh the page you can not see that the row has been deleted.
Thanks
Hadar