From 66d333e7d1a27e0b179bcebeb3609b1d1b19b5ba Mon Sep 17 00:00:00 2001 From: Keenan Graham Date: Tue, 8 Feb 2022 13:17:36 -0800 Subject: [PATCH] Use dot notation --- src/encoded/static/components/schema.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/encoded/static/components/schema.js b/src/encoded/static/components/schema.js index ed0de0e876b..7e63e845c60 100644 --- a/src/encoded/static/components/schema.js +++ b/src/encoded/static/components/schema.js @@ -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), would @@ -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 (