Skip to content

Commit

Permalink
enhance Allow using default user without password #1
Browse files Browse the repository at this point in the history
  • Loading branch information
caioricciuti committed May 17, 2024
1 parent 20a12b1 commit ca18a01
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/pages/SettingsPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/providers/ClickHouseContext.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ca18a01

Please sign in to comment.