feat: refs #8166 show notification
gitea/salix-front/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Jorge Penadés 2024-11-19 15:43:55 +01:00
parent e54eb50265
commit 73b7fa7704
1 changed files with 4 additions and 1 deletions

View File

@ -213,7 +213,10 @@ const requestComponentUpdate = async (ticket, isWithoutNegatives) => {
warehouseFk: ticket.futureWarehouseFk,
});
if (!newLanded) throw new Error(t('advanceTickets.noDeliveryZone'));
if (!newLanded) {
notify(t('advanceTickets.noDeliveryZone'), 'negative');
throw new Error(t('advanceTickets.noDeliveryZone'));
}
ticket.landed = newLanded.landed;
ticket.zoneFk = newLanded.zoneFk;