protvista-uniprot 4.4.1 → 4.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "protvista-uniprot",
3
3
  "description": "ProtVista tool for the UniProt website",
4
- "version": "4.4.1",
4
+ "version": "4.4.3",
5
5
  "files": [
6
6
  "dist",
7
7
  "src"
@@ -291,7 +291,7 @@ class ProtvistaUniprotStructure extends LitElement {
291
291
  let afData = [];
292
292
  // Check if AF sequence matches UniProt sequence
293
293
  if (
294
- rawData[pdbUrl].sequence?.value === rawData[alphaFoldUrl][0]?.sequence
294
+ rawData[pdbUrl].sequence?.value === rawData[alphaFoldUrl]?.[0]?.sequence
295
295
  ) {
296
296
  afData = processAFData(rawData[alphaFoldUrl] || []);
297
297
  }
@@ -484,10 +484,13 @@ class ProtvistaUniprotStructure extends LitElement {
484
484
  protein-accession=${this.accession}
485
485
  color-theme=${this.colorTheme}
486
486
  ></nightingale-structure>`
487
- : html`<nightingale-structure
487
+ : html``}
488
+ ${this.modelUrl
489
+ ? html`<nightingale-structure
488
490
  model-url=${this.modelUrl}
489
491
  color-theme=${this.colorTheme}
490
- ></nightingale-structure>`}
492
+ ></nightingale-structure>`
493
+ : html``}
491
494
  </div>
492
495
  <div class="protvista-uniprot-structure__table">
493
496
  ${this.data && this.data.length