File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -69,8 +69,14 @@ define([
6969 ...this . state
7070 }
7171
72+ this . importTemplatesCopy = JSON . parse ( JSON . stringify ( importTemplates ) ) ;
73+ if ( vpConfig . extensionType === 'lite' ) {
74+ // for LITE: set default checked state as false on seaborn package
75+ this . importTemplatesCopy [ 'data-analysis' ] [ 3 ] . checked = false ;
76+ }
77+
7278 if ( ! this . state . importMeta || this . state . importMeta . length <= 0 ) {
73- this . state . importMeta = JSON . parse ( JSON . stringify ( importTemplates [ this . state . tabType ] ) ) ;
79+ this . state . importMeta = JSON . parse ( JSON . stringify ( this . importTemplatesCopy [ this . state . tabType ] ) ) ;
7480 }
7581 }
7682
@@ -86,7 +92,7 @@ define([
8692 $ ( that . wrapSelector ( '.vp-tab-button' ) ) . removeClass ( 'vp-tab-selected' ) ;
8793 $ ( this ) . addClass ( 'vp-tab-selected' ) ;
8894 // replace libraries
89- that . state . importMeta = importTemplates [ tabType ] ;
95+ that . state . importMeta = that . importTemplatesCopy [ tabType ] ;
9096 $ ( that . wrapSelector ( '#vp_tblImport' ) ) . replaceWith ( function ( ) {
9197 return that . templateTable ( that . state . importMeta ) ;
9298 } ) ;
You can’t perform that action at this time.
0 commit comments