From cf750114f799045be2aae5a12257c792bde7a10c Mon Sep 17 00:00:00 2001 From: dwindown Date: Sun, 21 Sep 2025 17:29:46 +0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Remove=20all=20setSelectedRowInd?= =?UTF-8?q?ex=20references?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Remove setSelectedRowIndex calls from handleRowClick - Remove setSelectedRowIndex calls from handleBack - Remove setSelectedRowIndex calls from handleBreadcrumbClick - Build now passes ESLint validation ✅ --- src/components/PostmanTable.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/components/PostmanTable.js b/src/components/PostmanTable.js index 5ce25661..84de41f9 100644 --- a/src/components/PostmanTable.js +++ b/src/components/PostmanTable.js @@ -47,7 +47,6 @@ const PostmanTable = ({ data, title = "JSON Data" }) => { // Handle row click - navigate to item details const handleRowClick = (index, key = null) => { if (isArrayView) { - setSelectedRowIndex(index); setCurrentPath([...currentPath, index]); } else if (isObjectView && key) { // Navigate into object property @@ -60,7 +59,6 @@ const PostmanTable = ({ data, title = "JSON Data" }) => { if (currentPath.length > 0) { const newPath = currentPath.slice(0, -1); setCurrentPath(newPath); - setSelectedRowIndex(null); } }; @@ -71,11 +69,9 @@ const PostmanTable = ({ data, title = "JSON Data" }) => { setCurrentPath([]); } else { // Click on specific breadcrumb - navigate to that level - // Adjust for the "Root" prefix in breadcrumb const newPath = currentPath.slice(0, index); setCurrentPath(newPath); } - setSelectedRowIndex(null); }; // Generate breadcrumb