From 03f28a480423ef0d7d78b2ee1ea2e97a07e4d334 Mon Sep 17 00:00:00 2001 From: James Date: Sat, 9 Jul 2022 17:16:19 -0700 Subject: [PATCH] feat: ensures auth component doesn't render if disabled --- src/admin/components/views/collections/Edit/Auth/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/admin/components/views/collections/Edit/Auth/index.tsx b/src/admin/components/views/collections/Edit/Auth/index.tsx index 4fb47c9005..d0032d4f09 100644 --- a/src/admin/components/views/collections/Edit/Auth/index.tsx +++ b/src/admin/components/views/collections/Edit/Auth/index.tsx @@ -55,7 +55,7 @@ const Auth: React.FC = (props) => { } }, [serverURL, api, slug, email]); - if (!collection.auth.disableLocalStrategy) { + if (collection.auth.disableLocalStrategy) { return null; }