mirror of
https://github.com/9technologygroup/patchmon.net.git
synced 2025-11-13 18:36:01 +00:00
fix(frontend): Change to an optional chain
This commit is contained in:
@@ -123,8 +123,7 @@ const Packages = () => {
|
||||
const filtered = packages.filter((pkg) => {
|
||||
const matchesSearch =
|
||||
pkg.name.toLowerCase().includes(searchTerm.toLowerCase()) ||
|
||||
(pkg.description &&
|
||||
pkg.description.toLowerCase().includes(searchTerm.toLowerCase()));
|
||||
pkg.description?.toLowerCase().includes(searchTerm.toLowerCase());
|
||||
|
||||
const matchesCategory =
|
||||
categoryFilter === "all" || pkg.category === categoryFilter;
|
||||
|
||||
Reference in New Issue
Block a user