From e77734a515a3ab974f2594caa7740e265e9b5420 Mon Sep 17 00:00:00 2001 From: "H. Kamran" Date: Mon, 11 Nov 2024 19:13:41 -0800 Subject: [PATCH] Remove length check from custom methods --- src/components/table.jsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/table.jsx b/src/components/table.jsx index 5433522..bd66e6e 100644 --- a/src/components/table.jsx +++ b/src/components/table.jsx @@ -16,7 +16,7 @@ function Table({ Category, Title, search, grid }) { useEffect(() => { if (!search) { - setRegion(window.location.pathname.slice(1,-1)); + setRegion(window.location.pathname.slice(1, -1)); const region = window.location.pathname.slice(1); fetch(`${API_URL}/${region || 'int/'}${Category}.json`, { cache: 'force-cache' }). @@ -50,7 +50,7 @@ function Table({ Category, Title, search, grid }) {
Software
{entries.map(([name, data]) => ( - + ))} ); @@ -144,7 +144,7 @@ function Methods({ methods, customSoftware, customHardware }) { * @param {string[]} props.methods - The custom methods */ function CustomMethods({ type, methods }) { - return methods.length !== 0 ? + return methods ? `
  • ${method}
  • `).join("")} data-bs-toggle="popover">
    : ; }