@worktile/theia 20.1.1 → 20.1.3

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.
@@ -18155,7 +18155,7 @@ class HeadingFlavour extends TheBaseFlavourElement {
18155
18155
  constructor() {
18156
18156
  super(...arguments);
18157
18157
  this.beforeContextChange = (value) => {
18158
- if (this.editor.options.enableVirtualScroll) {
18158
+ if (this.editor && this.editor.options.enableVirtualScroll) {
18159
18159
  return;
18160
18160
  }
18161
18161
  const isHeading = isStandardHeadingElement(value.element);
@@ -18179,7 +18179,7 @@ class HeadingFlavour extends TheBaseFlavourElement {
18179
18179
  }
18180
18180
  onInit() {
18181
18181
  super.onInit();
18182
- if (!this.editor.options.enableVirtualScroll &&
18182
+ if (!this.editor?.options?.enableVirtualScroll &&
18183
18183
  this.element &&
18184
18184
  isStandardHeadingElement(this.element) &&
18185
18185
  this.element.isCollapsed) {