8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c4974ba + b021292 commit 924454dCopy full SHA for 924454d
reference/forms/types/collection.rst
@@ -152,7 +152,7 @@ you need is this JavaScript code:
152
jQuery('.add-another-collection-widget').click(function (e) {
153
var list = jQuery(jQuery(this).attr('data-list-selector'));
154
// Try to find the counter of the list or use the length of the list
155
- var counter = list.data('widget-counter') | list.children().length;
+ var counter = list.data('widget-counter') || list.children().length;
156
157
// grab the prototype template
158
var newWidget = list.attr('data-prototype');
0 commit comments