Middle Column: Fix bot description layout with zero animations level (#2069)

This commit is contained in:
Alexander Zinchuk 2022-10-12 01:46:23 +02:00
parent 22a59651fb
commit 5facc6f908

View File

@ -331,7 +331,12 @@ const Main: FC<StateProps> = ({
// Handle opening right column
useOnChange(([prevIsRightColumnOpen]) => {
if (prevIsRightColumnOpen === undefined || animationLevel === 0) {
if (prevIsRightColumnOpen === undefined) {
return;
}
if (animationLevel === 0) {
setIsNarrowMessageList(isRightColumnOpen);
return;
}