lavoce #27

Merged
bragaz_rexita merged 42 commits from lavoce into main 2025-12-22 09:28:35 +00:00
2 changed files with 2 additions and 8 deletions
Showing only changes of commit 3a4b0f0748 - Show all commits

View File

@@ -433,6 +433,7 @@ const AddBrandDevice = () => {
}); });
const payload = { const payload = {
error_code: errorCodeValues.error_code,
error_code_name: errorCodeValues.error_code_name, error_code_name: errorCodeValues.error_code_name,
error_code_description: errorCodeValues.error_code_description || '', error_code_description: errorCodeValues.error_code_description || '',
error_code_color: errorCodeValues.error_code_color || '#000000', error_code_color: errorCodeValues.error_code_color || '#000000',
@@ -442,10 +443,6 @@ const AddBrandDevice = () => {
spareparts: selectedSparepartIds || [] spareparts: selectedSparepartIds || []
}; };
if (!editingErrorCodeKey || !editingErrorCodeKey.startsWith('existing_')) {
payload.error_code = errorCodeValues.error_code;
}
let response; let response;
if (editingErrorCodeKey && editingErrorCodeKey.startsWith('existing_')) { if (editingErrorCodeKey && editingErrorCodeKey.startsWith('existing_')) {

View File

@@ -521,6 +521,7 @@ const EditBrandDevice = () => {
}); });
const payload = { const payload = {
error_code: errorCodeValues.error_code,
error_code_name: errorCodeValues.error_code_name, error_code_name: errorCodeValues.error_code_name,
error_code_description: errorCodeValues.error_code_description || '', error_code_description: errorCodeValues.error_code_description || '',
error_code_color: errorCodeValues.error_code_color || '#000000', error_code_color: errorCodeValues.error_code_color || '#000000',
@@ -530,10 +531,6 @@ const EditBrandDevice = () => {
spareparts: selectedSparepartIds || [] spareparts: selectedSparepartIds || []
}; };
if (!editingErrorCodeKey || !editingErrorCodeKey.startsWith('existing_')) {
payload.error_code = errorCodeValues.error_code;
}
let response; let response;
if (editingErrorCodeKey && editingErrorCodeKey.startsWith('existing_')) { if (editingErrorCodeKey && editingErrorCodeKey.startsWith('existing_')) {