Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MelsHyrule committed Mar 30, 2023
1 parent 29b7759 commit ce34648
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ const HostEditForm = ({ ids }) => {
miqSparkleOn();
let message = '';
let url = '';
if (initialValues) {
if (ids.length === 1) {
message = sprintf(__(`Edit of Host "%s" was cancelled.`), initialValues.name);
url = `/host/show/${initialValues.id}`;
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ const ValidateHostCredentials = ({ ...props }) => {

const asyncValidate = (fields, fieldNames) => new Promise((resolve, reject) => {
const url = initialValues.host_validate_against ? `/api/hosts/${initialValues.host_validate_against}` : `/api/hosts/${ids[0]}`;
console.log(url);
const resource = pick(fields, fieldNames);

API.post(url, { action: 'verify_credentials', resource }).then(({ results: [result] = [], ...single }) => {
Expand Down

0 comments on commit ce34648

Please sign in to comment.