Skip to content

Commit

Permalink
Ensaremirerol/issue29 (#30)
Browse files Browse the repository at this point in the history
* fix: remote_connection_string check skipped in Workspace Create Dialog
  • Loading branch information
ensaremirerol authored Feb 10, 2025
1 parent f086853 commit e9a9647
Showing 1 changed file with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,10 @@ const CreateWorkspaceDialog = ({
if (!form_ref.current) return;
setError(null);

const { workspace_name, type, remote_connection_string, description } =
// const { workspace_name, type, remote_connection_string, description } =
// form_ref.current;

const { workspace_name, remote_connection_string, description } =
form_ref.current;

if (!workspace_name.value) {
Expand All @@ -74,10 +77,10 @@ const CreateWorkspaceDialog = ({
// setError('Type is required');
// return;
// }
if (type.value === 'remote' && !remote_connection_string.value) {
setError('Remote Connection String is required');
return;
}
// if (type.value === 'remote' && !remote_connection_string.value) {
// setError('Remote Connection String is required');
// return;
// }

const data: CreateWorkspaceMetadata = {
name: workspace_name.value,
Expand Down

0 comments on commit e9a9647

Please sign in to comment.