feat: use REST API endpoint to create flow

This commit is contained in:
Ali BARIN
2024-09-18 14:51:23 +00:00
parent 1790ef0ee6
commit 2e5dfdbb0d
6 changed files with 39 additions and 47 deletions

View File

@@ -27,11 +27,12 @@ import useLazyApps from 'hooks/useLazyApps';
function createConnectionOrFlow(appKey, supportsConnections = false) {
if (!supportsConnections) {
return URLS.CREATE_FLOW_WITH_APP(appKey);
return URLS.CREATE_FLOW;
}
return URLS.APP_ADD_CONNECTION(appKey);
}
function AddNewAppConnection(props) {
const { onClose } = props;
const theme = useTheme();