repair: ErrorCode brand-device

This commit is contained in:
2025-12-18 10:51:35 +07:00
parent 4bffbb3798
commit 3a4b0f0748
2 changed files with 2 additions and 8 deletions

View File

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

View File

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