Merge pull request #648 from ruilisi/434-invalid-value-for-the-leftcss-style-warning-is-randomly-raised

fix: null check for freeze handles
This commit is contained in:
Sanchit Agarwal 2024-12-08 12:47:11 +05:30 committed by GitHub
commit 27e733d8da
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -220,7 +220,7 @@ const ColumnHeader: React.FC = () => {
className="fortune-cols-freeze-handle"
onMouseDown={onColFreezeHandleMouseDown}
style={{
left: freezeHandleLeft,
left: freezeHandleLeft || 0,
}}
/>
<div

View File

@ -210,7 +210,7 @@ const RowHeader: React.FC = () => {
className="fortune-rows-freeze-handle"
onMouseDown={onRowFreezeHandleMouseDown}
style={{
top: freezeHandleTop,
top: freezeHandleTop || 0,
}}
/>
<div