mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-09-22 22:48:12 +08:00
Handle schema v1.1.0 (#2002)
Correctly display datasets that follow schema version 1.1.0
This commit is contained in:
@@ -167,7 +167,7 @@ const renderLinks = (projectLinks, aboutURL) => {
|
||||
|
||||
const InfoFormat = React.memo(
|
||||
({ datasetTitle, singleValueCategories, aboutURL, dataPortalProps = {} }) => {
|
||||
if (dataPortalProps.version?.["corpora_schema_version"] !== "1.0.0") {
|
||||
if (["1.0.0", "1.1.0"].indexOf(dataPortalProps.version?.["corpora_schema_version"]) === -1) {
|
||||
dataPortalProps = {};
|
||||
}
|
||||
const {
|
||||
|
||||
@@ -13,7 +13,7 @@ const DATASET_TITLE_FONT_SIZE = 14;
|
||||
@connect((state) => {
|
||||
const { corpora_props: corporaProps } = state.config;
|
||||
const correctVersion =
|
||||
corporaProps?.version?.["corpora_schema_version"] === "1.0.0";
|
||||
["1.0.0", "1.1.0"].indexOf(corporaProps?.version?.["corpora_schema_version"]) > -1;
|
||||
return {
|
||||
datasetTitle: state.config?.displayNames?.dataset ?? "",
|
||||
libraryVersions: state.config?.["library_versions"],
|
||||
|
||||
Reference in New Issue
Block a user