Skip to content

Commit

Permalink
Merge pull request #35 from AdamHillier/fix-chore-tag
Browse files Browse the repository at this point in the history
Fix bug introduced in 08b8101
  • Loading branch information
k88hudson committed Jun 28, 2018
2 parents 517ad72 + c2a75fd commit 1134f08
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/content/components/BugList/columnTransforms.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ import {DateTime} from "luxon";

const OPEN_BUG_URL = "https://bugzilla.mozilla.org/show_bug.cgi?id=";

const WHITEBOARD_TAGS = ["needinfo", "chore"];

const numberWithSpaces = n => {
const letters = n.toString().split("");
return (<React.Fragment><span>{letters.slice(0, -3).join("")}</span><span>{letters.slice(-3).join("")}</span></React.Fragment>);
Expand Down Expand Up @@ -35,10 +33,8 @@ function renderWhiteboard({whiteboard, keywords, severity, hasPR, flags}) {
if (hasPR) {
tags.push("has-pr");
}
if (flags) {
WHITEBOARD_TAGS
.filter(tag => flags.find(flag => flag.name === tag))
.forEach(tags.push)
if (flags && flags.find(flag => flag.name === "needinfo")) {
tags.push("needinfo");
}

return <ul className={styles.tagList}>{tags.map(tag => {
Expand Down

0 comments on commit 1134f08

Please sign in to comment.