From 75428b91868fcdc5b76078a36f07909a8b05f8aa Mon Sep 17 00:00:00 2001 From: Eric Doughty-Papassideris Date: Tue, 30 Apr 2024 15:49:31 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84=20front:=20don't=20flash=20passwor?= =?UTF-8?q?d=20prompt=20when=20opening=20a=20shared=20link=20without=20pas?= =?UTF-8?q?sword=20protection=20(#315)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tdrive/frontend/src/app/views/client/body/drive/shared.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tdrive/frontend/src/app/views/client/body/drive/shared.tsx b/tdrive/frontend/src/app/views/client/body/drive/shared.tsx index 6a918173..4cb8f27d 100755 --- a/tdrive/frontend/src/app/views/client/body/drive/shared.tsx +++ b/tdrive/frontend/src/app/views/client/body/drive/shared.tsx @@ -105,7 +105,7 @@ const AccessChecker = ({ const { details, loading, refresh } = useDriveItem(folderId); const companyId = useRouterCompany(); const [password, setPassword] = useState((token || '').split('+')[1] || ''); - const [accessGranted, setAccessGranted] = useState(false); + const [accessGranted, setAccessGranted] = useState(null); //Preload applications mainly for shared view const { refresh: refreshApplications } = useCompanyApplications(); @@ -143,7 +143,7 @@ const AccessChecker = ({ }, []); - if ((!details?.item?.id && !loading) || !accessGranted) { + if ((!details?.item?.id && !loading) || accessGranted === false) { return (