diff --git a/src/DebugBar/Resources/debugbar.js b/src/DebugBar/Resources/debugbar.js index 5984e3d1..9780aaf8 100644 --- a/src/DebugBar/Resources/debugbar.js +++ b/src/DebugBar/Resources/debugbar.js @@ -949,7 +949,8 @@ if (typeof(PhpDebugBar) == 'undefined') { if (this.datasetTab) { this.datasetTab.set('data', this.datasets); - this.datasetTab.set('badge', getObjectSize(this.datasets)); + var datasetSize = getObjectSize(this.datasets); + this.datasetTab.set('badge', datasetSize > 1 ? datasetSize : null); this.datasetTab.$tab.show(); }