Skip to content

Commit

Permalink
Fixed off-by-one error in filter auto-complete
Browse files Browse the repository at this point in the history
  • Loading branch information
texodus committed Apr 30, 2018
1 parent 9e61879 commit cd64c49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/perspective-viewer/src/js/view.js
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ function new_row(name, type, aggregate, filter) {
if (type === 'string') {
const v = this._table.view({row_pivot:[name], aggregate: []});
v.to_json().then(json => {
row.choices(json.slice(1, json.length - 1).map(x => x.__ROW_PATH__));
row.choices(json.slice(1, json.length).map(x => x.__ROW_PATH__));
v.delete();
})
}
Expand Down

0 comments on commit cd64c49

Please sign in to comment.