Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refs #37596 - Add an api request method to table index instead of always assuming 'get' #10223

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

parthaa
Copy link
Contributor

@parthaa parthaa commented Jun 25, 2024

No description provided.

@MariaAga
Copy link
Member

MariaAga commented Jul 1, 2024

The code is fine, but can you give an example of where its needed?

@ekohl ekohl changed the title Refs #37596 - Add a api request method to table index instead of always assuming 'get' Refs #37596 - Add an api request method to table index instead of always assuming 'get' Jul 1, 2024
}) => {
let response = useAPI(
replacementResponse ? null : 'get',
replacementResponse ? null : method,
apiUrl.includes('include_permissions')
? apiUrl
: `${apiUrl}?include_permissions=true`,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unrelated, but this assumes the API URL didn't use any GET parameters before. I'd think that isn't a safe assumption and think it should parse things.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants