Skip to content
Open
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
4 changes: 2 additions & 2 deletions src/components/germplasm/GermplasmTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
</b-table-column>
<b-table-column field="accessionNumber" label="GID" sortable v-slot="props" :th-attrs="(column) => ({scope:'col'})" searchable>
<GermplasmLink
v-bind:germplasmUUID="BrAPIUtils.getBreedingInsightId(props.row.data.externalReferences)"
v-bind:germplasmUUID="props.row.data.germplasmDbId"
v-bind:germplasmGID="props.row.data.accessionNumber"
>
</GermplasmLink>
Expand Down Expand Up @@ -54,7 +54,7 @@
{{ props.row.data.additionalInfo.createdBy.userName }}
</b-table-column>
<b-table-column v-slot="props" :th-attrs="(column) => ({scope:'col'})">
<router-link v-bind:to="{name: 'germplasm-details', params: {programId: activeProgram.id, germplasmId: BrAPIUtils.getBreedingInsightId(props.row.data.externalReferences)}}">
<router-link v-bind:to="{name: 'germplasm-details', params: {programId: activeProgram.id, germplasmId: props.row.data.germplasmDbId}}">
Show Details
</router-link>
</b-table-column>
Expand Down
2 changes: 1 addition & 1 deletion src/views/germplasm/GermplasmDetails.vue
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ import { GermplasmSortField, SortOrder } from '@/breeding-insight/model/Sort';
BrAPIService.get(BrAPIType.GERMPLASM, programId, { field: GermplasmSortField.AccessionNumber, order: SortOrder.Ascending }, { pageSize: 1, page: 0 }, { accessionNumber: gid }).then((germplasmResult) => {
// Parse out the germplasm id
const germplasm = germplasmResult.result.data[0];
const germplasmUUID = BrAPIUtils.getBreedingInsightId(germplasm.externalReferences);
const germplasmUUID = germplasm.germplasmDbId;
next({ name: 'germplasm-details', params: { programId, germplasmId: germplasmUUID } });
return;
});
Expand Down
Loading