mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
This commit is contained in:
@@ -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--;
|
||||
|
||||
Reference in New Issue
Block a user