For Bug 57739
This commit is contained in:
parent
2c433a9621
commit
55f3b79061
|
@ -8,8 +8,13 @@ const NavigationPopover = props => {
|
||||||
const _t = t('Settings', {returnObjects: true});
|
const _t = t('Settings', {returnObjects: true});
|
||||||
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();
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Page>
|
<Page>
|
||||||
|
|
Loading…
Reference in a new issue