Skip to content

Commit 1c73b82

Browse files
Merge pull request #941 from Codeinwp/bugfix/347
Fix control Type error
2 parents 7ad6867 + c5801d8 commit 1c73b82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/render-google.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ var chartWrapperError = [];
7676
}
7777

7878
var controlWrapperElement = document.getElementById( "control_wrapper_" + id ) || null;
79-
var withControlMode = typeof settings.controls !== 'undefined' && controlWrapperElement ? true : false;
79+
var withControlMode = ( typeof settings.controls !== 'undefined' && '' !== settings.controls.controlType ) && controlWrapperElement ? true : false;
8080

8181
if ( $( controlWrapperElement ).hasClass( 'no-filter' ) ) {
8282
withControlMode = false;

0 commit comments

Comments
 (0)