From 0a934b2c0609e5138076cbfd83b3401413863078 Mon Sep 17 00:00:00 2001 From: Partha Aji Date: Tue, 25 Jun 2024 16:13:49 -0400 Subject: [PATCH] Refs #37596 - Add a api request method to table index instead of assuming get always --- .../components/PF4/TableIndexPage/Table/TableIndexHooks.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/webpack/assets/javascripts/react_app/components/PF4/TableIndexPage/Table/TableIndexHooks.js b/webpack/assets/javascripts/react_app/components/PF4/TableIndexPage/Table/TableIndexHooks.js index 6fb1075db3f..f0214a74370 100644 --- a/webpack/assets/javascripts/react_app/components/PF4/TableIndexPage/Table/TableIndexHooks.js +++ b/webpack/assets/javascripts/react_app/components/PF4/TableIndexPage/Table/TableIndexHooks.js @@ -19,9 +19,10 @@ export const useTableIndexAPIResponse = ({ apiUrl, apiOptions = {}, defaultParams = {}, + method = 'get', }) => { let response = useAPI( - replacementResponse ? null : 'get', + replacementResponse ? null : method, apiUrl.includes('include_permissions') ? apiUrl : `${apiUrl}?include_permissions=true`,