We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c114463 commit ad83facCopy full SHA for ad83fac
src/components/BalancedMasonry/BalancedMasonry.tsx
@@ -42,7 +42,7 @@ const BalancedMasonry = (props: WithChildren<BalancedMasonryProps>) => {
42
for (const [rawWidth, columnCount] of breakpoints) {
43
const width = Number(rawWidth);
44
45
- if (document.body.clientWidth <= width) {
+ if (document?.body.clientWidth <= width) {
46
result = columnCount;
47
}
48
0 commit comments