Skip to content

Commit 074f8a0

Browse files
committed
Return array from ternary
1 parent f623b22 commit 074f8a0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/fx/hover.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1249,7 +1249,8 @@ function createHoverText(hoverData, opts) {
12491249
var mainText = !unifiedhovertitleText
12501250
? t0
12511251
: Lib.hovertemplateString({
1252-
args: hovermode === 'x unified' ? { xa: item0.xa, x: item0.xVal } : { ya: item0.ya, y: item0.yVal },
1252+
args:
1253+
hovermode === 'x unified' ? [{ xa: item0.xa, x: item0.xVal }] : [{ ya: item0.ya, y: item0.yVal }],
12531254
d3locale: fullLayout._d3locale,
12541255
fallback: item0.trace.hovertemplatefallback,
12551256
string: unifiedhovertitleText

0 commit comments

Comments
 (0)