fix app install modal
This commit is contained in:
parent
3edc690075
commit
b09cec5a8d
2 changed files with 3 additions and 3 deletions
|
|
@ -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]);
|
||||
|
|
|
|||
Reference in a new issue