From d60ef22bd16133cfcf76485f8af9c3d91b93e906 Mon Sep 17 00:00:00 2001 From: kevin Date: Fri, 2 Aug 2024 16:01:31 -0400 Subject: [PATCH] chore: renamed handleAllSelection --- frontend/widgets/src/QueryApi.Launchpad.jsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/frontend/widgets/src/QueryApi.Launchpad.jsx b/frontend/widgets/src/QueryApi.Launchpad.jsx index 2fce2e04..fb38e9c3 100644 --- a/frontend/widgets/src/QueryApi.Launchpad.jsx +++ b/frontend/widgets/src/QueryApi.Launchpad.jsx @@ -453,7 +453,7 @@ const handleFetchCheckboxData = async () => { }); }; -const handleSelectUnselectAll = (action) => { +const toggleAllSelection = (action) => { const isMethodsTab = tab === 'methods_tab'; const isEventsTab = tab === 'events_tab'; @@ -477,7 +477,7 @@ const handleParentChange = (propertyName) => { const isEventsTab = tab === 'events_tab'; if (propertyName === 'select_all' || propertyName === 'unselect_all') { - handleSelectUnselectAll(propertyName); + toggleAllSelection(propertyName); return; } @@ -619,7 +619,7 @@ return ( handleSelectUnselectAll('select_all')} + onChange={() => toggleAllSelection('select_all')} /> Select All @@ -627,7 +627,7 @@ return ( handleSelectUnselectAll('unselect_all')} + onChange={() => toggleAllSelection('unselect_all')} /> Unselect All @@ -671,7 +671,7 @@ return ( handleSelectUnselectAll('select_all')} + onChange={() => toggleAllSelection('select_all')} /> Select All Events @@ -679,7 +679,7 @@ return ( handleSelectUnselectAll('unselect_all')} + onChange={() => toggleAllSelection('unselect_all')} /> Unselect All Events