Skip to content

Commit ef5ca13

Browse files
committed
bugfix for homepage "Prioritize tumor contexts" example
That example plot was not properly being colored by mutations.
1 parent 65d335a commit ef5ca13

File tree

1 file changed

+10
-2
lines changed
  • frontend/packages/@depmap/data-explorer-2/src/components/DataExplorerPage

1 file changed

+10
-2
lines changed

frontend/packages/@depmap/data-explorer-2/src/components/DataExplorerPage/utils.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -780,8 +780,16 @@ export async function makePlotConfigBreadboxModeCompatible(
780780
context: {
781781
name: nextValue.identifier,
782782
dimension_type: slice_type,
783-
expr: { "==": [{ var: "given_id" }, nextValue.identifier] },
784-
vars: {},
783+
expr: { "==": [{ var: "entity_label" }, nextValue.identifier] },
784+
vars: {
785+
entity_label: {
786+
dataset_id: maybeFallbackToMetadataDatasetNonGivenId(
787+
`${slice_type}_metadata`
788+
),
789+
identifier_type: "column" as const,
790+
identifier: "label",
791+
},
792+
},
785793
},
786794
} as unknown) as DataExplorerPlotConfigDimension;
787795
delete plot.metadata[key];

0 commit comments

Comments
 (0)