Commit 79b949df authored by Laurent Sittler's avatar Laurent Sittler ©
Browse files

Fix empty panel

parents d1fcc8f0 b7211a04
Pipeline #1010 passed with stages
in 6 minutes and 22 seconds
{
"name": "table-of-contents-for-share-point",
"version": "1.0.1",
"version": "1.0.2",
"private": true,
"main": "lib/index.js",
"engines": {
......
......@@ -154,7 +154,7 @@ export default class TableOfContentApplicationCustomizer extends BaseApplication
}
/* Add lastest header */
if (headers && index == headers.length - 1) {
if (parent['H2'] && this._keys.indexOf(parent['H2'].key) < 0) {
if (parent['H2']) {
root[0].links.push(parent['H2']);
} else if (parent['H3'] && this._keys.indexOf(parent['H3'].key) < 0) {
root[0].links.push(parent['H3']);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment