Skip to content

Commit 1812ed6

Browse files
committed
only use unique minichart for strings and numbers
1 parent 6fcfc6d commit 1812ed6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scout-ui/src/minicharts/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ module.exports = AmpersandView.extend({
2525
},
2626
render: function() {
2727
this.renderWithTemplate(this);
28-
2928
// unique values get a div-based minichart
30-
if (this.model.unique === this.model.count) {
29+
if ((['String', 'Number'].indexOf(this.model.name) !== -1) &&
30+
(this.model.unique === this.model.count)) {
3131
this.viewOptions.renderMode = 'html';
3232
this.viewOptions.className = 'minichart unique';
3333
this.subview = new UniqueMinichartView(this.viewOptions);

0 commit comments

Comments
 (0)