Skip to content

Commit

Permalink
Revert "updating the details on screen after edit dbt"
Browse files Browse the repository at this point in the history
This reverts commit 8551f7b.
  • Loading branch information
Ishankoradia committed Jul 14, 2023
1 parent 8551f7b commit 0ee15c3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
4 changes: 0 additions & 4 deletions src/components/DBT/DBTSetup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ interface DBTSetupProps {
gitrepoUrl: string;
schema: string;
mode: string;
fetchUpdatedWorkspace: (...args: any) => any;
}

interface DBTCreateWorkspaceParams {
Expand All @@ -35,7 +34,6 @@ export const DBTSetup = ({
gitrepoUrl,
schema,
mode,
fetchUpdatedWorkspace,
}: DBTSetupProps) => {
const { register, handleSubmit, reset } = useForm<DBTCreateWorkspaceParams>();
const { data: session }: any = useSession();
Expand Down Expand Up @@ -140,7 +138,6 @@ export const DBTSetup = ({
};
try {
await httpPut(session, 'dbt/schema/', updateSchemaPayload);
fetchUpdatedWorkspace();
} catch (err: any) {
console.error(err);
errorToast(err.message, [], toastContext);
Expand All @@ -162,7 +159,6 @@ export const DBTSetup = ({
setTimeout(() => {
checkProgress(message.task_id);
}, 1000);
fetchUpdatedWorkspace();
} catch (err: any) {
console.error(err);
errorToast(err.message, [], toastContext);
Expand Down
2 changes: 0 additions & 2 deletions src/pages/pipeline/transform.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,6 @@ const Transform = () => {
gitrepoUrl=""
schema=""
mode="create"
fetchUpdatedWorkspace={() => setRerender(!rerender)}
/>
) : dbtSetupStage === 'complete' && workspace ? (
<DBTSetup
Expand All @@ -294,7 +293,6 @@ const Transform = () => {
gitrepoUrl={workspace?.gitrepo_url}
schema={workspace?.default_schema}
mode="edit"
fetchUpdatedWorkspace={() => setRerender(!rerender)}
/>
) : (
''
Expand Down

0 comments on commit 0ee15c3

Please sign in to comment.