Fix text block tunes

This commit is contained in:
Tanya Fomina 2022-08-08 12:24:54 +03:00
commit 3b4d18b339
2 changed files with 2 additions and 2 deletions

View file

@ -651,7 +651,7 @@ export default class Block extends EventsDispatcher<BlockEvents> {
const tunesItems: PopoverItem[] = [];
/** Tool's tunes: may be defined as return value of optional renderSettings method */
const tunesDefinedInTool = typeof this.toolInstance.renderSettings === 'function' && this.toolInstance.renderSettings();
const tunesDefinedInTool = typeof this.toolInstance.renderSettings === 'function' ? this.toolInstance.renderSettings() : [];
/** Common tunes: combination of default tunes (move up, move down, delete) and third-party tunes connected via tunes api */
const commonTunes = [

View file

@ -3,7 +3,7 @@ import $ from '../../dom';
import * as _ from '../../utils';
import SelectionUtils from '../../selection';
import Block from '../../block';
import Popover, { PopoverEvent, PopoverItem } from '../../utils/popover';
import Popover, { PopoverEvent } from '../../utils/popover';
import I18n from '../../i18n';
import { I18nInternalNS } from '../../i18n/namespace-internal';