fix(bom): preserve local vendor spec on config import

This commit is contained in:
Mikhail Chusavitin
2026-02-27 10:11:20 +03:00
parent 586114c79c
commit a42a80beb8
2 changed files with 67 additions and 0 deletions

View File

@@ -148,6 +148,9 @@ func (s *Service) ImportConfigurationsToLocal() (*ConfigImportResult, error) {
if localCfg.Line <= 0 && existing.Line > 0 {
localCfg.Line = existing.Line
}
// vendor_spec is local-only for BOM tab and is not stored on server.
// Preserve it during server pull updates.
localCfg.VendorSpec = existing.VendorSpec
result.Updated++
} else {
result.Imported++