Skip to content

Commit e4851c0

Browse files
committed
fix main component EJS
1 parent 3989340 commit e4851c0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: templates/app/client/app/main/main.component.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ export class MainComponent implements OnInit<% if(filters.ws) { %>, OnDestroy<%
2525
ngOnInit() {
2626
return this.http.get('/api/things')
2727
.subscribe(things => {
28-
this.awesomeThings = things;
29-
this.SocketService.syncUpdates('thing', this.awesomeThings);
28+
this.awesomeThings = things;<% if(filters.ws) { %>
29+
this.SocketService.syncUpdates('thing', this.awesomeThings);<% } %>
3030
});
3131
}<% if (filters.models) { %>
3232
<%_ if(filters.ws) { %>

0 commit comments

Comments
 (0)