From 13ccd294cb8c3a8e3e0690d49117437dd957aeed Mon Sep 17 00:00:00 2001 From: Joel Date: Wed, 23 Oct 2024 17:55:25 +0800 Subject: [PATCH] fix: install error title not update --- .../plugins/install-plugin/install-from-local-package/index.tsx | 2 +- .../plugins/install-plugin/install-from-marketplace/index.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/web/app/components/plugins/install-plugin/install-from-local-package/index.tsx b/web/app/components/plugins/install-plugin/install-from-local-package/index.tsx index 3d18625839..92b5c6f61f 100644 --- a/web/app/components/plugins/install-plugin/install-from-local-package/index.tsx +++ b/web/app/components/plugins/install-plugin/install-from-local-package/index.tsx @@ -34,7 +34,7 @@ const InstallFromLocalPackage: React.FC = ({ if (step === InstallStep.installFailed) return t(`${i18nPrefix}.installFailed`) return t(`${i18nPrefix}.installPlugin`) - }, []) + }, [step]) const [manifest, setManifest] = useState(toolNotionManifest) const handleUploaded = useCallback((result: { diff --git a/web/app/components/plugins/install-plugin/install-from-marketplace/index.tsx b/web/app/components/plugins/install-plugin/install-from-marketplace/index.tsx index 86c0150b5d..f555f31c02 100644 --- a/web/app/components/plugins/install-plugin/install-from-marketplace/index.tsx +++ b/web/app/components/plugins/install-plugin/install-from-marketplace/index.tsx @@ -35,7 +35,7 @@ const InstallFromMarketplace: React.FC = ({ if (step === InstallStep.installFailed) return t(`${i18nPrefix}.installFailed`) return t(`${i18nPrefix}.installPlugin`) - }, []) + }, [step]) const handleInstalled = useCallback(() => { setStep(InstallStep.installed)