Skip to content

Commit 513fcfc

Browse files
committed
fix refrences to multi legend containers
1 parent 2f899c0 commit 513fcfc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/legend/defaults.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ function groupDefaults(legendId, layoutIn, layoutOut, fullData) {
9494
legendReallyHasATrace && legendTraceCount > 1);
9595

9696
// delete legend
97-
if(showLegend === false) layoutOut.legend = undefined;
97+
if(showLegend === false) layoutOut[legendId] = undefined;
9898

9999
if(showLegend === false && !containerIn.uirevision) return;
100100

@@ -170,7 +170,7 @@ function groupDefaults(legendId, layoutIn, layoutOut, fullData) {
170170
}, 'y');
171171

172172
coerce('traceorder', defaultOrder);
173-
if(helpers.isGrouped(layoutOut.legend)) coerce('tracegroupgap');
173+
if(helpers.isGrouped(layoutOut[legendId])) coerce('tracegroupgap');
174174

175175
coerce('entrywidth');
176176
coerce('entrywidthmode');

0 commit comments

Comments
 (0)