Skip to content

Commit 670eb24

Browse files
committed
fix: tootlip value not showing correctly on call tree
1 parent 1ba2dc2 commit 670eb24

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

log-viewer/modules/components/calltree-view/CalltreeView.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -719,7 +719,7 @@ export class CalltreeView extends LitElement {
719719
headerHozAlign: 'right',
720720
tooltip(_event, cell, _onRender) {
721721
const maxDmlStatements = governorLimits.dmlStatements.limit;
722-
return cell.getValue() + maxDmlStatements > 0 ? '/' + maxDmlStatements : '';
722+
return cell.getValue() + (maxDmlStatements > 0 ? '/' + maxDmlStatements : '');
723723
},
724724
},
725725
{
@@ -745,7 +745,7 @@ export class CalltreeView extends LitElement {
745745
headerHozAlign: 'right',
746746
tooltip(_event, cell, _onRender) {
747747
const maxSoql = governorLimits.soqlQueries.limit;
748-
return cell.getValue() + maxSoql > 0 ? '/' + maxSoql : '';
748+
return cell.getValue() + (maxSoql > 0 ? '/' + maxSoql : '');
749749
},
750750
},
751751
{
@@ -781,7 +781,7 @@ export class CalltreeView extends LitElement {
781781
headerHozAlign: 'right',
782782
tooltip(_event, cell, _onRender) {
783783
const maxDmlRows = governorLimits.dmlRows.limit;
784-
return cell.getValue() + maxDmlRows > 0 ? '/' + maxDmlRows : '';
784+
return cell.getValue() + (maxDmlRows > 0 ? '/' + maxDmlRows : '');
785785
},
786786
},
787787
{
@@ -807,7 +807,7 @@ export class CalltreeView extends LitElement {
807807
headerHozAlign: 'right',
808808
tooltip(_event, cell, _onRender) {
809809
const maxQueryRows = governorLimits.queryRows.limit;
810-
return cell.getValue() + maxQueryRows > 0 ? '/' + maxQueryRows : '';
810+
return cell.getValue() + (maxQueryRows > 0 ? '/' + maxQueryRows : '');
811811
},
812812
},
813813
{

0 commit comments

Comments
 (0)