Skip to content

Commit

Permalink
fix: hightlight all dags when no dag to highlight
Browse files Browse the repository at this point in the history
  • Loading branch information
llandr20 committed Jan 3, 2024
1 parent 8302d59 commit fb48565
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/contentScript.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ function isAirflowInstance() {

function highlightDags(dags, style) {
let dagsElement = document.getElementsByClassName("dags-table-body")[0]
if (!dagsElement) return;
if (!dagsElement || (dags.length === 1 && dags[0] === "") ) return;
for (let tr of dagsElement.children[0].children[1].children) {
for (let dag of dags) {
if (tr.children[1].innerText.includes(dag)) {
Expand Down

0 comments on commit fb48565

Please sign in to comment.