|
|
|
@ -328,7 +328,7 @@ const VarReferencePicker: FC<Props> = ({
|
|
|
|
const [dynamicOptions, setDynamicOptions] = useState<FormOption[] | null>(null)
|
|
|
|
const [dynamicOptions, setDynamicOptions] = useState<FormOption[] | null>(null)
|
|
|
|
const [isLoading, setIsLoading] = useState(false)
|
|
|
|
const [isLoading, setIsLoading] = useState(false)
|
|
|
|
const { mutateAsync: fetchDynamicOptions } = useFetchDynamicOptions(
|
|
|
|
const { mutateAsync: fetchDynamicOptions } = useFetchDynamicOptions(
|
|
|
|
currentProvider?.plugin_id || '', currentProvider?.name || '', currentTool?.name || '', (schema as CredentialFormSchemaSelect).variable,
|
|
|
|
currentProvider?.plugin_id || '', currentProvider?.name || '', currentTool?.name || '', (schema as CredentialFormSchemaSelect)?.variable || '',
|
|
|
|
'tool',
|
|
|
|
'tool',
|
|
|
|
)
|
|
|
|
)
|
|
|
|
const handleFetchDynamicOptions = async () => {
|
|
|
|
const handleFetchDynamicOptions = async () => {
|
|
|
|
|