fix(editor): Filter credentials by project ID also for new workflow (#9615)
This commit is contained in:
@@ -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 } : {}),
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user