Skip to content

Commit

Permalink
feat: slight tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
benstoltz committed May 24, 2024
1 parent 2fdd679 commit 8e85029
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 2 additions & 0 deletions packages/common/src/search/_internal/buildCatalog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import { EntityType, IFilter, IHubCatalog, IHubCollection } from "../types";
* @param catalogName - well known catalog name
* @param filters - filters to build the catalog scope
* @param collections - collections to include in the catalog
* @param targetEntity - target entity type for the catalog
* @param title - optional title override for the catalog
* @returns {IHubCatalog}
*/
export function buildCatalog(
Expand Down
2 changes: 0 additions & 2 deletions packages/common/src/search/wellKnownCatalog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,6 @@ function getWellknownItemCatalog(
);
break;
case "partners":
validateUserExistence(catalogName, options);
// Get trusted orgs that aren't the current user's org or the community org
const trustedOrgIds = context.trustedOrgIds.filter((orgId: string) => {
return (
Expand Down Expand Up @@ -185,7 +184,6 @@ function getWellknownItemCatalog(
}
break;
case "community":
validateUserExistence(catalogName, options);
const communityOrgId = _getCOrgOrEOrgId(context);
// only build the catalog if there is a community org id
if (communityOrgId) {
Expand Down

0 comments on commit 8e85029

Please sign in to comment.