File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -35,15 +35,15 @@ class UnconnectedSingleSubplotCreator extends Component {
3535 }
3636
3737 updateSubplot ( update ) {
38- const currentSubplotId = this . props . fullContainer [ SUBPLOT_TO_ATTR [ this . props . attr ] . data ] ;
38+ const currentSubplotId = this . props . fullContainer [ SUBPLOT_TO_ATTR [ this . props . layoutAttr ] . data ] ;
3939 let subplotToBeGarbageCollected = null ;
4040
4141 // When we select another subplot, make sure no unused axes are left
4242 if (
4343 currentSubplotId !== update &&
4444 ! this . context . fullData . some (
4545 trace =>
46- trace [ SUBPLOT_TO_ATTR [ this . props . attr ] . data ] === currentSubplotId &&
46+ trace [ SUBPLOT_TO_ATTR [ this . props . layoutAttr ] . data ] === currentSubplotId &&
4747 trace . index !== this . props . fullContainer . index
4848 )
4949 ) {
You can’t perform that action at this time.
0 commit comments