Skip to content

Commit c5801d8

Browse files
Fix control Type error Codeinwp/visualizer-pro#347
1 parent 622e2cf commit c5801d8

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)