wrap all app category in function

This commit is contained in:
bbedward committed 2025-08-13 18:36:24 -04:00
1 parent cc6e465be1
commit ab2889c86f
1 file changed
+1 -1
+1 -1
View File
@@ -46,7 +46,7 @@ Item {
var apps = []
if (searchQuery.length === 0) {
if (selectedCategory === "All") {
apps = AppSearchService.applications || []
apps = AppSearchService.getAppsInCategory("All") // HACK: Use function call instead of property
} else {
var categoryApps = AppSearchService.getAppsInCategory(selectedCategory)
apps = categoryApps.slice(0, maxResults)