diff --git a/app/client/src/components/editorComponents/ApiResponseView.tsx b/app/client/src/components/editorComponents/ApiResponseView.tsx index 863bb7385f..3980f9cbb4 100644 --- a/app/client/src/components/editorComponents/ApiResponseView.tsx +++ b/app/client/src/components/editorComponents/ApiResponseView.tsx @@ -212,6 +212,13 @@ function ApiResponseView(props: Props) { setSelectedIndex(1); }, []); + const onRunClick = () => { + props.onRunClick(); + AnalyticsUtil.logEvent("RESPONSE_TAB_RUN_ACTION_CLICK", { + source: "API_PANE", + }); + }; + const initialIndex = useSelector(getActionTabsInitialIndex); const [selectedIndex, setSelectedIndex] = useState(initialIndex); const messages = response?.messages; @@ -250,7 +257,7 @@ function ApiResponseView(props: Props) { {EMPTY_RESPONSE_FIRST_HALF()} { + history.push( + INTEGRATION_EDITOR_URL( + applicationId, + pageId, + INTEGRATION_TABS.NEW, + INTEGRATION_EDITOR_MODES.MOCK, + ), + ); + AnalyticsUtil.logEvent("CONNECT_DATA_CLICK"); + }; + return ( Data Required