Skip to content

Commit

Permalink
Lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Deepalijain13 committed Dec 18, 2024
1 parent 85f8571 commit c1467da
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,12 @@ export const EditOwnersModal = ({
const renderSearchResult = (entity: Entity) => {
const avatarUrl =
(entity.type === EntityType.CorpUser && (entity as CorpUser).editableProperties?.pictureLink) || undefined;
const isCorpUser = (entity.type as EntityType) === EntityType.CorpUser;
const corpUserDepartmentName =
(entity.type === EntityType.CorpUser && (entity as CorpUser).properties?.departmentName) || '';
const corpUserId = (entity.type === EntityType.CorpUser && (entity as CorpUser).username) || '';
const corpUserTitle = (entity.type === EntityType.CorpUser && (entity as CorpUser).properties?.title) || '';
const displayName = entityRegistry.getDisplayName(entity.type, entity);

return (
<Select.Option
key={entity.urn}
Expand Down
2 changes: 1 addition & 1 deletion datahub-web-react/src/app/shared/OwnerLabel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ type Props = {
corpUserDepartmentName?: string;
};

export const OwnerLabel = ({ name, avatarUrl, type , corpUserId, corpUserTitle, corpUserDepartmentName }: Props) => {
export const OwnerLabel = ({ name, avatarUrl, type, corpUserId, corpUserTitle, corpUserDepartmentName }: Props) => {
const subHeader = [corpUserId, corpUserTitle, corpUserDepartmentName].filter(Boolean).join(' - ');

return (
Expand Down

0 comments on commit c1467da

Please sign in to comment.