File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ class ClientStateCompilerOptions {
49
49
}
50
50
}
51
51
52
- class ClientStateCompiler {
52
+ class ClientStateCompiler {
53
53
constructor ( jsondata ) {
54
54
if ( jsondata ) {
55
55
this . fromJsonData ( jsondata ) ;
@@ -71,7 +71,7 @@ class ClientStateCompiler {
71
71
} else {
72
72
this . id = "" ;
73
73
}
74
-
74
+
75
75
this . options = jsondata . options ;
76
76
this . filters = new ClientStateCompilerOptions ( jsondata . filters ) ;
77
77
if ( typeof jsondata . libs !== 'undefined' ) {
@@ -170,9 +170,11 @@ class ClientStateSession {
170
170
this . compilers . push ( new ClientStateCompiler ( compilerdata ) ) ;
171
171
} ) ;
172
172
173
- jsondata . executors . forEach ( ( executor ) => {
174
- this . executors . push ( new ClientStateExecutor ( executor ) ) ;
175
- } ) ;
173
+ if ( typeof jsondata . executors !== 'undefined' ) {
174
+ jsondata . executors . forEach ( ( executor ) => {
175
+ this . executors . push ( new ClientStateExecutor ( executor ) ) ;
176
+ } ) ;
177
+ }
176
178
}
177
179
178
180
findOrCreateCompiler ( id ) {
You can’t perform that action at this time.
0 commit comments