Skip to content

Commit

Permalink
Refs #37596 - Add a api request method to table index instead of assu…
Browse files Browse the repository at this point in the history
…ming get always
  • Loading branch information
parthaa committed Jun 25, 2024
1 parent e9891a9 commit ba89b67
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@ export const useTableIndexAPIResponse = ({
apiUrl,
apiOptions = {},
defaultParams = {},
requestMethod = 'get',
}) => {
let response = useAPI(
replacementResponse ? null : 'get',
replacementResponse ? null : requestMethod,
apiUrl.includes('include_permissions')
? apiUrl
: `${apiUrl}?include_permissions=true`,
Expand Down

0 comments on commit ba89b67

Please sign in to comment.