Replaced labels with icons in the SR and Action badges
This commit is contained in:
@@ -79,7 +79,7 @@ function createOpportunitiesFormatters({
|
||||
|
||||
(items || opportunitiesTableState.opportunitiesTableState.items).forEach((item) => {
|
||||
const key = getOwnerKey(item);
|
||||
const label = getOwnerName(item);
|
||||
const label = String(getOwnerName(item)).trim() || "-";
|
||||
|
||||
if (key && label && !optionsByKey.has(key)) {
|
||||
optionsByKey.set(key, { key, label: String(label) });
|
||||
@@ -96,7 +96,9 @@ function createOpportunitiesFormatters({
|
||||
function getOwnerKey(item) {
|
||||
const owner = item.Owner;
|
||||
const partyId = owner && typeof owner === "object" ? owner.PartyId : "";
|
||||
const name = getOwnerName(item);
|
||||
const name = String(getOwnerName(item)).trim();
|
||||
|
||||
if (!name) return "owner:unassigned";
|
||||
|
||||
if (partyId !== null && partyId !== undefined && partyId !== "") {
|
||||
return `party:${partyId}`;
|
||||
|
||||
Reference in New Issue
Block a user