Skip to content

Commit 0e8d9be

Browse files
committed
Correct subplot update
1 parent 8aa3312 commit 0e8d9be

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/components/fields/AxisCreator.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,11 @@ export class UnconnectedAxisCreator extends Component {
4747
context.onUpdate({
4848
type: EDITOR_ACTIONS.UPDATE_LAYOUT,
4949
payload: {
50-
update: {[`${subplot}.side`]: 'right'},
50+
update: {
51+
[`${subplot +
52+
(context.fullLayout._subplots[subplot].length +
53+
1)}.side`]: 'right',
54+
},
5155
},
5256
});
5357
}

0 commit comments

Comments
 (0)