fix(editor): Filter credentials by project ID also for new workflow (#9615)

This commit is contained in:
Csaba Tuncsik
2024-06-05 15:58:15 +02:00
committed by GitHub
parent e7f616290f
commit c92765dcdb
4 changed files with 164 additions and 11 deletions

View File

@@ -28,9 +28,10 @@ export async function getCredentialsNewName(
export async function getAllCredentials(
context: IRestApiContext,
filter?: object,
includeScopes?: boolean,
): Promise<ICredentialsResponse[]> {
return await makeRestApiRequest(context, 'GET', '/credentials', {
includeScopes: true,
...(includeScopes ? { includeScopes } : {}),
...(filter ? { filter } : {}),
});
}