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

bugfix: hide receptor panel if no receptor data received

parent 732a8b6f
No related branches found
No related tags found
No related merge requests found
......@@ -21,7 +21,7 @@ export class BsFeatureReceptorDirective extends BsRegionInputBase implements OnD
switchMap(val => merge(
of(null),
this.getFeatureInstancesList('ReceptorDistribution').pipe(
mapTo(true),
map(arr => arr.length > 0),
catchError(() => of(false))
)
)),
......
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