protvista-uniprot 4.4.2 → 4.4.4
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
|
@@ -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
|
}
|
|
@@ -304,7 +304,7 @@ class ProtvistaUniprotStructure extends LitElement {
|
|
|
304
304
|
if (!data || !data.length) return;
|
|
305
305
|
|
|
306
306
|
this.data = data;
|
|
307
|
-
this.alphamissenseAvailable = rawData[alphaFoldUrl]
|
|
307
|
+
this.alphamissenseAvailable = rawData[alphaFoldUrl]?.some(
|
|
308
308
|
(data) => data.amAnnotationsUrl
|
|
309
309
|
);
|
|
310
310
|
}
|