From ca18a01049b361b4f18ea1850001c1662d36d0a8 Mon Sep 17 00:00:00 2001 From: Caio Ricciuti Date: Fri, 17 May 2024 15:10:17 +0200 Subject: [PATCH] enhance Allow using default user without password #1 --- src/pages/SettingsPage.jsx | 2 +- src/providers/ClickHouseContext.jsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/SettingsPage.jsx b/src/pages/SettingsPage.jsx index 0b84535..ce550ff 100644 --- a/src/pages/SettingsPage.jsx +++ b/src/pages/SettingsPage.jsx @@ -34,7 +34,7 @@ export default function SettingsPage() { const handleSubmit = async () => { setIsLoading(true); try { - if (!clickHouseUrl || !clickHouseUser || !clickHousePassword) { + if (!clickHouseUrl || !clickHouseUser) { toast.error("Please fill all fields"); setIsLoading(false); return; diff --git a/src/providers/ClickHouseContext.jsx b/src/providers/ClickHouseContext.jsx index 1d4efde..c41e530 100644 --- a/src/providers/ClickHouseContext.jsx +++ b/src/providers/ClickHouseContext.jsx @@ -60,7 +60,7 @@ const ClickHouseProvider = ({ children }) => { setIsLoading(false); } }; - if (credentials.url && credentials.username && credentials.password) { + if (credentials.url && credentials.username) { initializeClient(); } else { setIsLoading(false);