Skip to content

Commit

Permalink
fix site error
Browse files Browse the repository at this point in the history
  • Loading branch information
MrWangJustToDo committed Feb 20, 2024
1 parent 897522e commit 3bb177b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions ui/ssr-example/src/client/component/BlogGrid/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ const _BlogGrid = ({ data, disableGridLayout = true }: { data: GetBlogListQuery[
</SimpleGrid>
);
}
console.log(data);
return <_BlogGridWithGridLayout data={data} />;
};

Expand Down
2 changes: 1 addition & 1 deletion ui/ssr-example/src/client/hooks/useSize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export function useDomSize({ ref, cssSelector, deps }: { ref?: RefObject<HTMLEle
return () => window.removeEventListener("resize", handleResize);
}
}
}, [ref, cssSelector, setRect, ...deps]);
}, [ref, cssSelector, setRect, ...(deps || [])]);

return rect;
}

0 comments on commit 3bb177b

Please sign in to comment.