Skip to content

Commit

Permalink
Get one label for required alert (#2041)
Browse files Browse the repository at this point in the history
  • Loading branch information
jimsafley committed Mar 28, 2023
1 parent f79380d commit 7c5e3b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/asset/js/resource-form.js
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@
});
if (!propIsCompleted) {
// No completed values found for this required property.
var propLabel = thisProp.find('.field-label').text();
var propLabel = thisProp.find('.field-label').last().text();
errors.push('The following field is required: ' + propLabel);
}
});
Expand Down

0 comments on commit 7c5e3b1

Please sign in to comment.