twsaari / FeatureSequence

JBrowse plugin to view the sequence of features
GNU General Public License v3.0
7 stars 3 forks source link

Quick fix no dialog when no subfeatures are present #18

Open bejo-dionnez opened 4 years ago

bejo-dionnez commented 4 years ago

Quick fix in the case that no subfeatures are present (feature.get("subfeatures") returns undefined and therefore _isSingle returns undefined) (I believe this issue is mentioned in issue #11 ). For the cases of annotation files with only one attribute.

In the case there are no "child" attributes/subfeatures JBrowse will now show a dialog that no subfeatures are present. Preferably it might show the fasta sequence, but is also present in the normal details box from JBrowse.

Screenshot 2019-10-29 at 12 12 28