From 866547b35400946cca6396bb05298e9e9cffe8cf Mon Sep 17 00:00:00 2001 From: Mohammed Mohsin <59914433+mdmohsin7@users.noreply.github.com> Date: Sun, 17 Nov 2024 09:57:53 +0530 Subject: [PATCH] pre-fill auth url if not empty --- app/lib/pages/apps/providers/add_app_provider.dart | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/lib/pages/apps/providers/add_app_provider.dart b/app/lib/pages/apps/providers/add_app_provider.dart index 50a07efb2..317f21c0d 100644 --- a/app/lib/pages/apps/providers/add_app_provider.dart +++ b/app/lib/pages/apps/providers/add_app_provider.dart @@ -104,6 +104,9 @@ class AddAppProvider extends ChangeNotifier { webhookUrlController.text = app.externalIntegration!.webhookUrl; setupCompletedController.text = app.externalIntegration!.setupCompletedUrl ?? ''; instructionsController.text = app.externalIntegration!.setupInstructionsFilePath; + if (app.externalIntegration!.authSteps.isNotEmpty) { + authUrlController.text = app.externalIntegration!.authSteps.first.url; + } } if (app.chatPrompt != null) { chatPromptController.text = app.chatPrompt!.decodeString;