Remove prefix for vendor id

Signed-off-by: Bryan Frimin <bryan@getprobo.com>
This commit is contained in:
Bryan Frimin
2025-04-22 13:36:08 -07:00
parent 2044433215
commit 418766e3d0

View File

@@ -1163,12 +1163,6 @@ function VendorViewContent({
}); });
}; };
const getVendorId = () => {
const id = data.node.id;
if (!id) return "";
return `vendor_${id.split(':')[1] || id}`;
};
const renderTabContent = () => { const renderTabContent = () => {
switch (activeTab) { switch (activeTab) {
case 'overview': case 'overview':
@@ -1177,7 +1171,7 @@ function VendorViewContent({
<div className="flex flex-wrap gap-x-12 gap-y-4 items-start mb-6"> <div className="flex flex-wrap gap-x-12 gap-y-4 items-start mb-6">
<div className="space-y-1"> <div className="space-y-1">
<p className="text-sm font-medium text-secondary">Vendor ID</p> <p className="text-sm font-medium text-secondary">Vendor ID</p>
<p className="text-sm text-tertiary">{getVendorId()}</p> <p className="text-sm text-tertiary">{data.node.id}</p>
</div> </div>
<div className="space-y-1"> <div className="space-y-1">
<p className="text-sm font-medium text-secondary">Joined</p> <p className="text-sm font-medium text-secondary">Joined</p>