This commit is contained in:
parent
9b3c6e8449
commit
da7e8ad2b6
1 changed files with 1 additions and 1 deletions
|
@ -338,7 +338,7 @@ export class Toolbar {
|
|||
const types = item.getAttribute("data-type").split(" ");
|
||||
if (type === "clear") {
|
||||
for (let i = 0; i < types.length; i++) {
|
||||
if (textObj.type === "text") {
|
||||
if (textObj && textObj.type === "text") {
|
||||
if ("text" === types[i]) {
|
||||
types.splice(i, 1);
|
||||
i--;
|
||||
|
|
Loading…
Add table
Reference in a new issue