mirror of
https://github.com/atom/atom.git
synced 2026-01-23 05:48:10 -05:00
Ignore children with no names
This will be elements that aren't package views
This commit is contained in:
@@ -119,7 +119,9 @@ class PackagePanel extends View
|
||||
filterPackages: (filterString) ->
|
||||
for children in [@installedPackages.children(), @availablePackages.children()]
|
||||
for packageView in children
|
||||
if /^\s*$/.test(filterString) or stringScore(packageView.getAttribute('name'), filterString)
|
||||
name = packageView.getAttribute('name')
|
||||
continue unless name
|
||||
if /^\s*$/.test(filterString) or stringScore(name, filterString)
|
||||
$(packageView).show()
|
||||
else
|
||||
$(packageView).hide()
|
||||
|
||||
Reference in New Issue
Block a user