Skip to content

Commit dff2efc

Browse files
committed
Check for null on server config
1 parent 69c2854 commit dff2efc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

OpenFlow/src/public/WebSocketClientService.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ export class WebSocketClientService {
4040
this.enable_entity_restriction = data.enable_entity_restriction;
4141
this.enable_web_tours = data.enable_web_tours;
4242

43-
this.collections_with_text_index = data.collections_with_text_index;
44-
this.timeseries_collections = data.timeseries_collections;
43+
if (data.collections_with_text_index) this.collections_with_text_index = data.collections_with_text_index;
44+
if (data.timeseries_collections) this.timeseries_collections = data.timeseries_collections;
4545

4646

4747
if (NoderedUtil.IsNullUndefinded(WebSocketClient.instance)) {

0 commit comments

Comments
 (0)