Skip to content

Commit

Permalink
feat: update
Browse files Browse the repository at this point in the history
  • Loading branch information
imfenghuang committed Aug 17, 2024
1 parent af0fb18 commit 41bf41b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ export default class ImtPlugin extends Plugin {
.filter((v) => !!v)
.forEach((v) =>
Array.isArray(v)
? v.forEach((s) => removeList.push(s))
: removeList.push(v)
? v.forEach((s) => s && removeList.push(s))
: v && removeList.push(v)
);
removeList.forEach((v) => v?.remove?.());

Expand Down

0 comments on commit 41bf41b

Please sign in to comment.