Merge pull request #2776 from matrix-org/erikj/fix_null_counter
Fix simple header counters to correctly handle zero, take two
This commit is contained in:
commit
0791f220fb
1 changed files with 23 additions and 25 deletions
|
@ -213,7 +213,6 @@ module.exports = React.createClass({
|
|||
const severity = counter.severity;
|
||||
const stateKey = counter.stateKey;
|
||||
|
||||
if (title && value && severity) {
|
||||
let span = <span>{ title }: { value }</span>
|
||||
|
||||
if (link) {
|
||||
|
@ -241,7 +240,6 @@ module.exports = React.createClass({
|
|||
key={"delim" + idx}
|
||||
> ─ </span>
|
||||
);
|
||||
}
|
||||
});
|
||||
|
||||
if (counters.length > 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue