Lattice Grid Buy a licence

Tabs ยท console.warn

tabs: tab "{id}" - its badgeTone function threw ({error}); the badge is drawn untoned.

Printed by Tabs, prefixed [lattice], since 1.59.0.

Warnings referencetabs.badgeTone.fn:*

Identifier
tabs.badgeTone.fn:*
Raised by
Tabs
Since
1.59.0

What happened

The badgeTone function threw when called with the live count. The throw is caught so the strip keeps working; the badge still shows its text, without a tone.

The fix

The thrown message is quoted in the line. Remember that the count is null until it is known, which is the usual cause of a throw on the first call.

The smallest fix

badgeTone: (count) => (count && count > 10 ? 'warning' : 'neutral')

Reference

Covered in full at the API reference.