From b09cec5a8d7e1349f55ed0f38545198fd49c5c9d Mon Sep 17 00:00:00 2001 From: Davor Date: Fri, 29 Jul 2022 18:35:04 +0200 Subject: [PATCH] fix app install modal --- src/modules/apps/AppSingle.tsx | 2 +- .../apps/components/AppInstallModal/AppInstallModal.tsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modules/apps/AppSingle.tsx b/src/modules/apps/AppSingle.tsx index 79c0cc5..92ea125 100644 --- a/src/modules/apps/AppSingle.tsx +++ b/src/modules/apps/AppSingle.tsx @@ -59,7 +59,7 @@ export const AppSingle: React.FC = () => { type="button" className="inline-flex items-center px-4 py-2 border border-gray-200 shadow-sm text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-500 justify-center" > - View Documentation + View manual diff --git a/src/modules/apps/components/AppInstallModal/AppInstallModal.tsx b/src/modules/apps/components/AppInstallModal/AppInstallModal.tsx index 4a2b925..8bd8d4e 100644 --- a/src/modules/apps/components/AppInstallModal/AppInstallModal.tsx +++ b/src/modules/apps/components/AppInstallModal/AppInstallModal.tsx @@ -28,11 +28,11 @@ export const AppInstallModal = ({ open, onClose, appSlug }: AppInstallModalProps useEffect(() => { if (!_.isEmpty(app)) { setAppName(app.name); - reset({ subdomain: getDefaultSubdomain(), configuration: initialCode }); + reset({ subdomain: getDefaultSubdomain(), configuration: initialCode, slug: appSlug ?? '' }); } return () => { - reset({ subdomain: getDefaultSubdomain(), configuration: initialCode }); + reset({ subdomain: getDefaultSubdomain(), configuration: initialCode, slug: appSlug ?? '' }); }; // eslint-disable-next-line react-hooks/exhaustive-deps }, [app, reset, open]);