Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean up factor range and add factor method #14037

Merged
merged 15 commits into from
Aug 27, 2024
Prev Previous commit
don't use .at
  • Loading branch information
bryevdv committed Aug 27, 2024
commit 9c02df9ffaa066417bcc070eb448bf6328381e83
2 changes: 1 addition & 1 deletion bokehjs/src/lib/models/ranges/factor_range.ts
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ export abstract class FactorMapper<FactorType> {
if (isString(x)) {
return [[x], 0]
}
const last = x.at(-1)
const last = x[x.length-1]
if (isNumber(last)) {
return [x.slice(0, -1), last]
}
Expand Down
Loading