Skip to content

Commit

Permalink
Use dot notation
Browse files Browse the repository at this point in the history
  • Loading branch information
keenangraham committed Feb 8, 2022
1 parent 3599ebb commit 66d333e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/encoded/static/components/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,7 @@ const SchemaPage = (props) => {
const { title } = context;

// The schema id is a path to the schema's JSON. Convert that to just the schema name.
const schemaName = schemaIdToName(context['$id']);
const schemaName = schemaIdToName(context.$id);

// Set up the "breadcrumbs" (sneer quotes because it's really just a link to /profiles/).
// If schemaName happened to be null (which it realistically can't), <BreadCrumbs> would
Expand Down Expand Up @@ -674,8 +674,8 @@ const AllSchemasPage = (props, reactContext) => {
// `objectName` is the @type of each objects e.g. GeneticModification
// `schemaName` is the system name of the objects e.g. genetic_modification
// `schemaPath` is the schema page path e.g. /profiles/genetic_modification
const schemaName = schemaIdToName(context[objectName]['$id']);
const schemaPath = schemaIdToPage(context[objectName]['$id']);
const schemaName = schemaIdToName(context[objectName].$id);
const schemaPath = schemaIdToPage(context[objectName].$id);

return (
<div className="schema-list__item" key={objectName}>
Expand Down

0 comments on commit 66d333e

Please sign in to comment.