Skip to content

Commit

Permalink
Always clear form error state and message in sync
Browse files Browse the repository at this point in the history
  • Loading branch information
ambirdsall committed Nov 18, 2022
1 parent d596864 commit 9f3bc05
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 0 additions & 2 deletions airbyte-webapp/src/packages/cloud/services/dbtCloud.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,6 @@ export const isSameJob = (remoteJob: DbtCloudJobInfo, savedJob: DbtCloudJob): bo

type ServiceToken = string;

type ServiceToken = string;

export const useSubmitDbtCloudIntegrationConfig = () => {
const { workspaceId } = useCurrentWorkspace();
const { mutateAsync: updateWorkspace } = useUpdateWorkspace();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export const DbtCloudSettingsView: React.FC = () => {
}}
onSubmit={({ serviceToken }, { resetForm }) => {
setHasValidationError(false);
setValidationMessage("");
return submitDbtCloudIntegrationConfig(serviceToken, {
onError: (e) => {
setHasValidationError(true);
Expand Down

0 comments on commit 9f3bc05

Please sign in to comment.