File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed
Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,9 @@ function initSideBar() {
4242 var config = exampleConfig ;
4343 var sideBar = $ ( "ul#sidebar-menu" ) ;
4444 for ( var key in config ) {
45+ if ( typeof config [ key ] === 'object' && config [ key ] !== null ) {
4546 sideBar . append ( createSideBarMenuItem ( key , config [ key ] , containExamples ) ) ;
47+ }
4648 }
4749 $ ( sideBar ) . ready ( function ( ) {
4850 initSelect ( ) ;
Original file line number Diff line number Diff line change @@ -21,8 +21,10 @@ function initPage() {
2121 var sideBar = $ ( "ul#sidebar-menu" ) ;
2222 var chartList = $ ( "#charts-list" ) ;
2323 for ( var key in exConfig ) {
24+ if ( typeof exConfig [ key ] === 'object' && exConfig [ key ] !== null ) {
2425 sideBar . append ( createSideBarMenuItem ( key , exConfig [ key ] , containExamples ) ) ;
2526 chartList . append ( createGalleryItem ( key , exConfig [ key ] ) ) ;
27+ }
2628 }
2729 resizeCharts ( ) ;
2830 initSelect ( ) ;
You can’t perform that action at this time.
0 commit comments