Skip to content

Commit

Permalink
fix(todoist): fix todoist toggl button (#2092)
Browse files Browse the repository at this point in the history
Closes #2088
  • Loading branch information
Alissonsz authored Jun 7, 2022
1 parent 67b5583 commit a5d76a3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/content/todoist.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ togglbutton.render(
{ observe: true },
(elem) => {
const actionsNode = elem.querySelector("[data-item-actions-root]");
if (actionsNode) return;

if (actionsNode && actionsNode.children.length) return;

const description = () => elem.dataset.itemContent || "";
const project = () => elem.dataset.itemProjectName || "";
Expand Down

0 comments on commit a5d76a3

Please sign in to comment.