From c652fc0e4d43fb08719fb80bdb3898153bb12e47 Mon Sep 17 00:00:00 2001 From: gearnode Date: Thu, 10 Apr 2025 10:24:09 -0700 Subject: [PATCH] Fix cannot create vendor who is already suggested Signed-off-by: gearnode --- CHANGELOG.md | 4 + .../organizations/vendors/VendorListView.tsx | 138 ++++++++---------- 2 files changed, 68 insertions(+), 74 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6aec0581f..24607819d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file. ## [Unreleased] +### Fixed + +- Fix cannot create vendor when the name is too similar to suggested one + ## [0.5.0] - 2025-04-10 ### Added diff --git a/apps/console/src/pages/organizations/vendors/VendorListView.tsx b/apps/console/src/pages/organizations/vendors/VendorListView.tsx index cf950e046..4bd23fa07 100644 --- a/apps/console/src/pages/organizations/vendors/VendorListView.tsx +++ b/apps/console/src/pages/organizations/vendors/VendorListView.tsx @@ -272,83 +272,73 @@ function VendorListContent({ /> {searchTerm.trim() !== "" && ( - <> - {filteredVendors.length > 0 ? ( -
- {filteredVendors.map((vendor: VendorItem) => ( - - ))} -
- ) : ( -
- + ))} + -
- )} - + }, + }); + }} + > + Create new vendor:{" "} + {searchTerm} + + )}