From d2ed6f3b4bbaa19082554608f4972ed208c69a05 Mon Sep 17 00:00:00 2001 From: NickMelnikov Date: Fri, 7 Apr 2023 18:58:42 +0600 Subject: [PATCH] fix-6507 fixed nnot read properties of undefined (reading 'size') --- src/components/colorbar/defaults.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/colorbar/defaults.js b/src/components/colorbar/defaults.js index 4ddaefdc41f..e08a5dd0d0e 100644 --- a/src/components/colorbar/defaults.js +++ b/src/components/colorbar/defaults.js @@ -82,7 +82,7 @@ module.exports = function colorbarDefaults(containerIn, containerOut, layout) { coerce('title.text', layout._dfltTitle.colorbar); - var tickFont = colorbarOut.tickfont; + var tickFont = colorbarOut.showticklabels ? colorbarOut.tickfont : font; var dfltTitleFont = Lib.extendFlat({}, tickFont, { color: font.color, size: Lib.bigFont(tickFont.size)