Skip to content

Commit

Permalink
Get one label for required alert (#2041)
Browse files Browse the repository at this point in the history
(cherry picked from commit 7c5e3b1)
  • Loading branch information
jimsafley authored and zerocrates committed Jun 15, 2023
1 parent 8e3eb2b commit 96ef150
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 96ef150

Please sign in to comment.