From 42e6af4e8ce7e837962050cc41ed715ea60b7b6c Mon Sep 17 00:00:00 2001 From: Renato Pozzi Date: Mon, 3 Feb 2025 16:13:19 +0100 Subject: [PATCH] fix(asana): no more double button (#2370) --- src/content/asana.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/content/asana.js b/src/content/asana.js index 821575d73..9b57c7452 100644 --- a/src/content/asana.js +++ b/src/content/asana.js @@ -56,6 +56,11 @@ togglbutton.render( (element) => { console.debug('DEBUG: Entering in SpreadsheetRow') + // Due to the way this UI is rendered, we must check for existence of old buttons manually. + if (element.parentNode.querySelector('.toggl-button')) { + return + } + const getDescription = () => { return element.querySelector('textarea').textContent.trim() }