Skip to content

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
ankitakinger committed Nov 18, 2024
1 parent 9ac6a8b commit 8394e0f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -585,6 +585,7 @@ function GeneratePageForm() {
};

AnalyticsUtil.logEvent("GEN_CRUD_PAGE_FORM_SUBMIT");
dispatch(closeGeneratePageModal());
dispatch(generateTemplateToUpdatePage(payload));
};

Expand All @@ -596,7 +597,6 @@ function GeneratePageForm() {
};

generatePageAction(payload);
dispatch(closeGeneratePageModal());
};

const goToEditDatasource = () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import {
GEN_CRUD_TABLE_HEADER_TOOLTIP_DESC,
} from "ee/constants/messages";
import { Icon, Option, Select, Input, Tooltip } from "@appsmith/ads";
import { closeGeneratePageModal } from "../../store/generatePageActions";

interface Props {
googleSheetPluginId: string;
Expand Down Expand Up @@ -263,8 +262,6 @@ function GoogleSheetForm(props: Props) {

generatePageAction(payload);
}

dispatch(closeGeneratePageModal());
};

const debouncedFetchColumns = useCallback(
Expand Down

0 comments on commit 8394e0f

Please sign in to comment.