Skip to content

Commit

Permalink
feat: add provider filter to credentialsForm (#3100)
Browse files Browse the repository at this point in the history
  • Loading branch information
sulmoJ authored Feb 16, 2024
1 parent f041157 commit e863855
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,12 @@ const checkJsonStringAvailable = (str: string): boolean => {
/* Api */
const listTrustAccounts = async () => {
try {
const { results } = await SpaceConnector.clientV2.identity.trustedAccount.list<TrustedAccountListParameters, ListResponse<TrustedAccountModel>>();
if (!props.provider) return;
const { results } = await SpaceConnector.clientV2.identity.trustedAccount.list<TrustedAccountListParameters, ListResponse<TrustedAccountModel>>(
{
query: new ApiQueryHelper().setFilters([{ k: 'provider', v: props.provider, o: '=' }]).data,
},
);
state.trustedAccounts = results ?? [];
} catch (e) {
ErrorHandler.handleError(e);
Expand Down

1 comment on commit e863855

@vercel
Copy link

@vercel vercel bot commented on e863855 Feb 16, 2024

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

console – ./

console-git-master-cloudforet.vercel.app
console-cloudforet.vercel.app

Please sign in to comment.