diff --git a/src/api.js b/src/api.js index a88b9cf532..ce915bd136 100644 --- a/src/api.js +++ b/src/api.js @@ -74,13 +74,8 @@ class APIClient { return this.http.get(API_INSTANCE_GROUPS); } - createInstanceGroups (url, selected) { - if (selected.length > 0) { - selected.forEach(select => { - this.http.post(url, { id: select.id }); - }); - } - return false; + createInstanceGroups (url, id) { + return this.http.post(url, { id }); } } diff --git a/src/components/About.jsx b/src/components/About.jsx index 4155eb1866..0e8a07f09e 100644 --- a/src/components/About.jsx +++ b/src/components/About.jsx @@ -1,5 +1,4 @@ import React from 'react'; -import PropTypes from 'prop-types'; import { I18n } from '@lingui/react'; import { Trans, t } from '@lingui/macro'; import { @@ -87,9 +86,4 @@ class About extends React.Component { } } -About.contextTypes = { - ansible_version: PropTypes.string, - version: PropTypes.string, -}; - export default About; diff --git a/src/components/Lookup/Lookup.jsx b/src/components/Lookup/Lookup.jsx index f5caf047d4..1f81d632f3 100644 --- a/src/components/Lookup/Lookup.jsx +++ b/src/components/Lookup/Lookup.jsx @@ -58,7 +58,7 @@ class Lookup extends React.Component {