File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -67,8 +67,13 @@ export const wrapper = input => WrappedComponent => {
67
67
// Initialize with new options
68
68
this . initialize ( options ) ;
69
69
70
- // Save new options in component state
71
- this . setState ( { options : options } ) ;
70
+ // Save new options in component state,
71
+ // and remove information about previous API handlers
72
+ this . setState ( {
73
+ options : options ,
74
+ loaded : false ,
75
+ google : null
76
+ } ) ;
72
77
}
73
78
74
79
initialize ( options ) {
@@ -89,9 +94,6 @@ export const wrapper = input => WrappedComponent => {
89
94
// Store information about loading container
90
95
this . LoadingContainer =
91
96
options . LoadingContainer || DefaultLoadingContainer ;
92
-
93
- // Remove information about previous API handlers
94
- this . setState ( { loaded : false , google : null } ) ;
95
97
}
96
98
97
99
onLoad ( err , tag ) {
You can’t perform that action at this time.
0 commit comments