Skip to content

Commit

Permalink
Merge pull request #788 from willswope/master
Browse files Browse the repository at this point in the history
Fixed a bug causing duplicate object IDs
  • Loading branch information
jeremybmerrill authored Feb 2, 2018
2 parents 5437dd4 + cef4483 commit 5cdcfa7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webapp/static/js/pdf_view.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ Tabula.Selections = Backbone.Collection.extend({
createHiddenSelection: function(sel){
new_selection_args = _.extend({'page_number': sel.page,
'extraction_method': 'spreadsheet',
'id': String.fromCharCode(65 + Math.floor(Math.random() * 26)) + Date.now(),
'id': Math.random().toString(),
'hidden': true,
'pdf_document': this.pdf_document},
sel);
Expand Down

0 comments on commit 5cdcfa7

Please sign in to comment.