JonStargaryen %!s(int64=3) %!d(string=hai) anos
pai
achega
09f1c066a0
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/mol-plugin-ui/structure/volume.tsx

+ 1 - 1
src/mol-plugin-ui/structure/volume.tsx

@@ -77,7 +77,7 @@ export class VolumeStreamingControls extends CollapsableControls<{}, VolumeStrea
         const rootCell = root && pivot.cell.parent.cells.get(root);
 
         const simpleApply = rootCell && rootCell.status === 'error'
-            ? { header: rootCell.errorText?.indexOf('404') === -1 ? 'Error Enabling' : 'No Density Data Available', icon: ErrorSvg, title: rootCell.errorText }
+            ? { header: !!rootCell.errorText && rootCell.errorText?.includes('404') ? 'No Density Data Available' : 'Error Enabling', icon: ErrorSvg, title: rootCell.errorText }
             : rootCell && rootCell.obj?.data.entries.length === 0
                 ? { header: 'Error Enabling', icon: ErrorSvg, title: 'No Entry for Streaming Found' }
                 : { header: 'Enable', icon: CheckSvg, title: 'Enable' };