refactor(NetworkConfigManager): clean up parentGateways and remove deprecated parentGatewayId field for improved data handling
Publish Fast Tabler Docker image / build-and-push-fast (push) Successful in 1m38s
Publish Fast Tabler Docker image / build-and-push-fast (push) Successful in 1m38s
This commit is contained in:
@@ -415,10 +415,9 @@ function NetworkConfigManager() {
|
||||
return;
|
||||
}
|
||||
|
||||
// Преобразуем description в верхний регистр
|
||||
// Очищаем пустые parentGateways и удаляем старое поле parentGatewayId
|
||||
const cleanedData = {
|
||||
...gatewayData,
|
||||
description: gatewayData.description ? gatewayData.description.toUpperCase() : '',
|
||||
parentGateways: gatewayData.type === 'recursive'
|
||||
? (gatewayData.parentGateways || []).filter(p => p && p.id)
|
||||
: [],
|
||||
|
||||
Reference in New Issue
Block a user