@difizen/libro-toc 0.2.26 → 0.2.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +5 -5
  2. package/src/toc-view.tsx +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@difizen/libro-toc",
3
- "version": "0.2.26",
3
+ "version": "0.2.27",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "libro",
@@ -33,10 +33,10 @@
33
33
  "src"
34
34
  ],
35
35
  "dependencies": {
36
- "@difizen/libro-common": "^0.2.26",
37
- "@difizen/libro-core": "^0.2.26",
38
- "@difizen/libro-markdown": "^0.2.26",
39
- "@difizen/libro-rendermime": "^0.2.26",
36
+ "@difizen/libro-common": "^0.2.27",
37
+ "@difizen/libro-core": "^0.2.27",
38
+ "@difizen/libro-markdown": "^0.2.27",
39
+ "@difizen/libro-rendermime": "^0.2.27",
40
40
  "@difizen/mana-app": "latest",
41
41
  "@difizen/mana-l10n": "latest"
42
42
  },
package/src/toc-view.tsx CHANGED
@@ -207,7 +207,7 @@ export class TOCView extends BaseView implements DisplayView {
207
207
  }
208
208
 
209
209
  isHeadingCollapsed(heading: IHeading) {
210
- return heading.id ? this.headingCollapseState.get(heading.id) ?? false : false;
210
+ return heading.id ? (this.headingCollapseState.get(heading.id) ?? false) : false;
211
211
  }
212
212
 
213
213
  protected hasChildren(current: IHeading, index: number, list: IHeading[]) {