feat: use REST API endpoint to create flow
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user