fix: old credentials are not accessible (#4358)

This commit is contained in:
Celal Zamanoglu
2025-12-23 00:02:16 +03:00
committed by GitHub
parent 8c79d31bd4
commit d57ff99788
6 changed files with 76 additions and 15 deletions

View File

@@ -22,7 +22,9 @@ type Props = {
};
function CredentialParameterSourceSelector({ value, onChange }: Props) {
const { data: credentials, isFetching } = useCredentialsQuery();
const { data: credentials, isFetching } = useCredentialsQuery({
page_size: 100, // Reasonable limit for dropdown selector
});
const { setIsOpen, setType } = useCredentialModalState();
const { parameters: workflowParameters } = useWorkflowParametersStore();
const workflowParametersOfTypeCredentialId = workflowParameters.filter(

View File

@@ -23,7 +23,9 @@ type Props = {
function CredentialSelector({ value, onChange }: Props) {
const { setIsOpen, setType } = useCredentialModalState();
const { data: credentials, isFetching } = useCredentialsQuery();
const { data: credentials, isFetching } = useCredentialsQuery({
page_size: 100, // Reasonable limit for dropdown selector
});
if (isFetching) {
return <Skeleton className="h-10 w-full" />;