Skip to content

Commit

Permalink
fix(axes): ensure document exists in the environment (#1489)
Browse files Browse the repository at this point in the history
  • Loading branch information
wyze authored Apr 23, 2021
1 parent c3f293d commit a2e0d89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/axes/src/compute.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ export const computeCartesianTicks = ({
const line = { lineX: 0, lineY: 0 }
const text = { textX: 0, textY: 0 }

const isRTL = document.dir === 'rtl'
const isRTL = typeof document === 'object' ? document.dir === 'rtl' : false
let translate
let textAlign = textProps.align.center
let textBaseline = textProps.baseline.center
Expand Down

0 comments on commit a2e0d89

Please sign in to comment.