Web:Client:Fixed page crash.
This commit is contained in:
parent
4e6b988ebf
commit
f4542b089e
@ -70,7 +70,7 @@ const ItemsList = ({
|
|||||||
const heightList = height ? height : bodyRef.current.offsetHeight;
|
const heightList = height ? height : bodyRef.current.offsetHeight;
|
||||||
const totalHeightItems = inviteItems.length * USER_ITEM_HEIGHT;
|
const totalHeightItems = inviteItems.length * USER_ITEM_HEIGHT;
|
||||||
const listAreaHeight = heightList;
|
const listAreaHeight = heightList;
|
||||||
const heightBody = invitePanelBodyRef.current.clientHeight;
|
const heightBody = invitePanelBodyRef?.current?.clientHeight;
|
||||||
const fullHeightList = heightBody - bodyRef.current.offsetTop;
|
const fullHeightList = heightBody - bodyRef.current.offsetTop;
|
||||||
const heightWitchOpenItemAccess = Math.max(scrollHeight, fullHeightList);
|
const heightWitchOpenItemAccess = Math.max(scrollHeight, fullHeightList);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user