Merge pull request #2776 from matrix-org/erikj/fix_null_counter
Fix simple header counters to correctly handle zero, take twopull/21833/head
commit
0791f220fb
|
@ -213,7 +213,6 @@ module.exports = React.createClass({
|
||||||
const severity = counter.severity;
|
const severity = counter.severity;
|
||||||
const stateKey = counter.stateKey;
|
const stateKey = counter.stateKey;
|
||||||
|
|
||||||
if (title && value && severity) {
|
|
||||||
let span = <span>{ title }: { value }</span>
|
let span = <span>{ title }: { value }</span>
|
||||||
|
|
||||||
if (link) {
|
if (link) {
|
||||||
|
@ -241,7 +240,6 @@ module.exports = React.createClass({
|
||||||
key={"delim" + idx}
|
key={"delim" + idx}
|
||||||
> ─ </span>
|
> ─ </span>
|
||||||
);
|
);
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
if (counters.length > 0) {
|
if (counters.length > 0) {
|
||||||
|
|
Loading…
Reference in New Issue