Merge pull request #16449 from Snuffleupagus/attachments-viewer-rm-sort
Stop trying to sort the attachments in the sidebar
This commit is contained in:
		
						commit
						d09c27d231
					
				@ -109,13 +109,10 @@ class PDFAttachmentViewer extends BaseTreeViewer {
 | 
				
			|||||||
      this._dispatchEvent(/* attachmentsCount = */ 0);
 | 
					      this._dispatchEvent(/* attachmentsCount = */ 0);
 | 
				
			||||||
      return;
 | 
					      return;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    const names = Object.keys(attachments).sort(function (a, b) {
 | 
					 | 
				
			||||||
      return a.toLowerCase().localeCompare(b.toLowerCase());
 | 
					 | 
				
			||||||
    });
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
    const fragment = document.createDocumentFragment();
 | 
					    const fragment = document.createDocumentFragment();
 | 
				
			||||||
    let attachmentsCount = 0;
 | 
					    let attachmentsCount = 0;
 | 
				
			||||||
    for (const name of names) {
 | 
					    for (const name in attachments) {
 | 
				
			||||||
      const item = attachments[name];
 | 
					      const item = attachments[name];
 | 
				
			||||||
      const content = item.content,
 | 
					      const content = item.content,
 | 
				
			||||||
        filename = getFilenameFromUrl(
 | 
					        filename = getFilenameFromUrl(
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user