[DE mobile] For Bug 57739
This commit is contained in:
parent
5c5ffb447a
commit
288ddae9f8
|
@ -9,7 +9,6 @@ const NavigationPopover = props => {
|
||||||
const api = Common.EditorApi.get();
|
const api = Common.EditorApi.get();
|
||||||
const navigationObject = api.asc_ShowDocumentOutline();
|
const navigationObject = api.asc_ShowDocumentOutline();
|
||||||
const [currentPosition, setCurrentPosition] = useState(navigationObject ? navigationObject.get_CurrentPosition() : null);
|
const [currentPosition, setCurrentPosition] = useState(navigationObject ? navigationObject.get_CurrentPosition() : null);
|
||||||
|
|
||||||
let arrHeaders = [];
|
let arrHeaders = [];
|
||||||
|
|
||||||
if(currentPosition) {
|
if(currentPosition) {
|
||||||
|
@ -44,8 +43,12 @@ const NavigationSheet = props => {
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
const api = Common.EditorApi.get();
|
const api = Common.EditorApi.get();
|
||||||
const navigationObject = api.asc_ShowDocumentOutline();
|
const navigationObject = api.asc_ShowDocumentOutline();
|
||||||
const [currentPosition, setCurrentPosition] = useState(navigationObject.get_CurrentPosition());
|
const [currentPosition, setCurrentPosition] = useState(navigationObject ? navigationObject.get_CurrentPosition() : null);
|
||||||
const arrHeaders = props.updateNavigation();
|
let arrHeaders = [];
|
||||||
|
|
||||||
|
if(currentPosition) {
|
||||||
|
arrHeaders = props.updateNavigation();
|
||||||
|
}
|
||||||
|
|
||||||
const [stateHeight, setHeight] = useState('45%');
|
const [stateHeight, setHeight] = useState('45%');
|
||||||
const [stateOpacity, setOpacity] = useState(1);
|
const [stateOpacity, setOpacity] = useState(1);
|
||||||
|
|
Loading…
Reference in a new issue