Skip to content

Commit

Permalink
IBX-9362: [Corporate accounts] A company can't be removed from a Cont…
Browse files Browse the repository at this point in the history
…ent tree in Admin (#1441)
  • Loading branch information
GrabowskiM authored Feb 19, 2025
1 parent a213443 commit fb162c6
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,14 @@ const createContentTypeDataMapByHref = () =>
return contentTypeDataMapByHref;
}, {});

const getContentTypeDataMapByHref = () => {
if (!contentTypesDataMapByHref) {
contentTypesDataMapByHref = createContentTypeDataMapByHref();
}

return contentTypesDataMapByHref;
};

/**
* Returns an URL to a content type icon
*
Expand Down Expand Up @@ -111,6 +119,7 @@ const getContentTypeDataByHref = (contentTypeHref) => {

export {
createContentTypeDataMapByHref,
getContentTypeDataMapByHref,
getContentTypeIconUrl,
getContentTypeName,
getContentTypeData,
Expand Down

0 comments on commit fb162c6

Please sign in to comment.