fix: remove deprecated condition to check
gitea/salix-front/pipeline/head This commit looks good Details

This commit is contained in:
Javier Segarra 2025-03-06 08:39:27 +01:00
parent 561a895d04
commit 6a182d5403
1 changed files with 1 additions and 1 deletions

View File

@ -123,7 +123,7 @@ async function handleSave() {
} }
function validateFields(item) { function validateFields(item) {
// Only validate fields that are being updated // Only validate fields that are being updated
const shouldExist = (field) => !isUpdate || field in item; const shouldExist = (field) => field in item;
if (!shouldExist('ticketServiceTypeFk') && !item.ticketServiceTypeFk) { if (!shouldExist('ticketServiceTypeFk') && !item.ticketServiceTypeFk) {
notify('Description is required', 'negative'); notify('Description is required', 'negative');