Skip to content

Commit eb9e751

Browse files
fix javascript typo
1 parent 9597f82 commit eb9e751

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

reference/forms/types/collection.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ you need is this JavaScript code:
152152
jQuery('.add-another-collection-widget').click(function (e) {
153153
var list = jQuery(jQuery(this).attr('data-list-selector'));
154154
// 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;
155+
var counter = list.data('widget-counter') || list.children().length;
156156
157157
// grab the prototype template
158158
var newWidget = list.attr('data-prototype');

0 commit comments

Comments
 (0)