-
Notifications
You must be signed in to change notification settings - Fork 4
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
chore: Fix type issue for list principals #436
base: main
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for harness-xd-review ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
@@ -58,8 +58,7 @@ export default function PullRequestConversationPage() { | |||
const [checkboxBypass, setCheckboxBypass] = useState(false) | |||
const { spaceId, repoId } = useParams<PathParams>() | |||
const { data: { body: principals } = {} } = useListPrincipalsQuery({ | |||
// @ts-expect-error : BE issue - not implemnted | |||
queryParams: { page: 1, limit: 100, type: 'user' } | |||
queryParams: { page: 1, limit: 100, type: ['user'] } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
when api call is made it doesn't work when
type: ['user']
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// @ts-expect-error - api call shows the array type but if we dont use the string type it will throw error | ||
queryParams: { page: 1, limit: 20, type: 'user' } | ||
// api call shows the array type but if we dont use the string type it will throw error | ||
queryParams: { page: 1, limit: 20, type: ['user'] } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here
@@ -50,8 +50,7 @@ export const RepoBranchSettingsRulesPageContainer = () => { | |||
) | |||
|
|||
const { data: { body: principals } = {}, error: principalsError } = useListPrincipalsQuery({ | |||
// @ts-expect-error : BE issue - not implemnted | |||
queryParams: { page: 1, limit: 100, type: 'user' } | |||
queryParams: { page: 1, limit: 100, type: ['user'] } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
api call does not work
No description provided.