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();
|
||||
|
@@ -43,10 +43,7 @@ function AppFlows(props) {
|
||||
text={formatMessage('app.noFlows')}
|
||||
data-test="flows-no-results"
|
||||
{...(allowed && {
|
||||
to: URLS.CREATE_FLOW_WITH_APP_AND_CONNECTION(
|
||||
appKey,
|
||||
connectionId
|
||||
),
|
||||
to: URLS.CREATE_FLOW,
|
||||
})}
|
||||
/>
|
||||
)}
|
||||
|
Reference in New Issue
Block a user