fix: old credentials are not accessible (#4358)
This commit is contained in:
@@ -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(
|
||||
|
||||
@@ -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" />;
|
||||
|
||||
Reference in New Issue
Block a user