[DE mobile] For Bug 57739

This commit is contained in:
SergeyEzhin 2022-06-30 11:20:24 +04:00
parent 5c5ffb447a
commit 288ddae9f8

View file

@ -9,7 +9,6 @@ const NavigationPopover = props => {
const api = Common.EditorApi.get();
const navigationObject = api.asc_ShowDocumentOutline();
const [currentPosition, setCurrentPosition] = useState(navigationObject ? navigationObject.get_CurrentPosition() : null);
let arrHeaders = [];
if(currentPosition) {
@ -44,8 +43,12 @@ const NavigationSheet = props => {
const { t } = useTranslation();
const api = Common.EditorApi.get();
const navigationObject = api.asc_ShowDocumentOutline();
const [currentPosition, setCurrentPosition] = useState(navigationObject.get_CurrentPosition());
const arrHeaders = props.updateNavigation();
const [currentPosition, setCurrentPosition] = useState(navigationObject ? navigationObject.get_CurrentPosition() : null);
let arrHeaders = [];
if(currentPosition) {
arrHeaders = props.updateNavigation();
}
const [stateHeight, setHeight] = useState('45%');
const [stateOpacity, setOpacity] = useState(1);