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 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();
|
||||
}
|
||||
|
||||
return (
|
||||
<Page>
|
||||
|
|
Loading…
Reference in a new issue