Skip to content
Snippets Groups Projects
Commit b96474c0 authored by Xiao Gui's avatar Xiao Gui
Browse files

fix: showing colormap, blank feature screen

parent 6feb12f3
No related branches found
No related tags found
No related merge requests found
......@@ -112,14 +112,17 @@ export class FeatureViewComponent {
if (!id) {
return of(null)
}
return this.sapi.getFeaturePlot(
id,
{
template: darktheme ? 'plotly_dark' : 'plotly_white',
...additionalParams
}
).pipe(
catchError(() => of(null))
return concat(
of(null),
this.sapi.getFeaturePlot(
id,
{
template: darktheme ? 'plotly_dark' : 'plotly_white',
...additionalParams
}
).pipe(
catchError(() => of(null))
)
)
}),
shareReplay(1),
......
......@@ -54,7 +54,7 @@ export class FeatureIntents{
)
),
switchMap(([ intents, allRegions ]) => {
const foundCm = (intents || []).find(intent => intent['@type'] === "siibra-0.4/intent/colorization")
const foundCm = (intents || []).find(intent => intent['@type'].includes("intent/colorization"))
if (!foundCm) {
return EMPTY
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment