Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions app/apis/catalog/hprc-data-explorer/common/entities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ export type HPRCDataExplorerAssembly = WithAbsentValues<{

export type HPRCDataExplorerAnnotation = WithAbsentValues<{
annotationType: string;
assemblyName: string;
biosampleAccession: string;
contributors: string;
familyId: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,14 +107,14 @@ export const buildAssemblyMethodVersion = (

/**
* Build props for the assembly name cell.
* @param assembly - Assembly entity.
* @param entity - Assembly or annotation entity.
* @returns Props to be used for the cell.
*/
export const buildAssemblyName = (
assembly: HPRCDataExplorerAssembly
entity: HPRCDataExplorerAssembly | HPRCDataExplorerAnnotation
): React.ComponentProps<typeof C.BasicCell> => {
return {
value: assembly.assemblyName,
value: entity.assemblyName,
};
};

Expand Down
1 change: 1 addition & 0 deletions catalog/build/ts/build-catalog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,7 @@ async function buildAnnotations(
);
return {
annotationType: parseStringOrAbsent(row.annotation_type),
assemblyName: parseStringOrAbsent(row.assembly_name),
biosampleAccession: sample.biosampleAccession,
contributors: sample.contributors,
familyId: sample.familyId,
Expand Down
Loading
Loading