Skip to content

Commit

Permalink
Merge pull request #33903 from dimagi/ad/fix-incomplete-forms-breadcr…
Browse files Browse the repository at this point in the history
…umbs

Fix incomplete forms breadcrumbs issue
  • Loading branch information
AddisonDunn committed Dec 20, 2023
2 parents 615f4ad + 462531a commit 622fafa
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,9 @@ hqDefine("cloudcare/js/formplayer/menus/utils", function () {
});

detailCollection = new Backbone.Collection(breadcrumbModels);
detailCollection.last().set('ariaCurrentPage', true);
if (detailCollection.length) {
detailCollection.last().set('ariaCurrentPage', true);
}
var breadcrumbView = views.BreadcrumbListView({
collection: detailCollection,
});
Expand Down

0 comments on commit 622fafa

Please sign in to comment.