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() {
42
42
var config = exampleConfig ;
43
43
var sideBar = $ ( "ul#sidebar-menu" ) ;
44
44
for ( var key in config ) {
45
+ if ( typeof config [ key ] === 'object' && config [ key ] !== null ) {
45
46
sideBar . append ( createSideBarMenuItem ( key , config [ key ] , containExamples ) ) ;
47
+ }
46
48
}
47
49
$ ( sideBar ) . ready ( function ( ) {
48
50
initSelect ( ) ;
Original file line number Diff line number Diff line change @@ -21,8 +21,10 @@ function initPage() {
21
21
var sideBar = $ ( "ul#sidebar-menu" ) ;
22
22
var chartList = $ ( "#charts-list" ) ;
23
23
for ( var key in exConfig ) {
24
+ if ( typeof exConfig [ key ] === 'object' && exConfig [ key ] !== null ) {
24
25
sideBar . append ( createSideBarMenuItem ( key , exConfig [ key ] , containExamples ) ) ;
25
26
chartList . append ( createGalleryItem ( key , exConfig [ key ] ) ) ;
27
+ }
26
28
}
27
29
resizeCharts ( ) ;
28
30
initSelect ( ) ;
You can’t perform that action at this time.
0 commit comments