mirror of
https://git.rwth-aachen.de/acs/public/villas/web/
synced 2025-03-09 00:00:01 +01:00
Fix live update while switching entities
This commit is contained in:
parent
5a84de89c0
commit
14e29f91cc
1 changed files with 3 additions and 1 deletions
|
@ -23,7 +23,9 @@ export default Ember.Component.extend({
|
|||
|
||||
_drawPlot: function() {
|
||||
var elementId = this.get('elementId');
|
||||
$.plot('#' + elementId, this.data);
|
||||
if (elementId) {
|
||||
$.plot('#' + elementId, this.data);
|
||||
}
|
||||
|
||||
Ember.run.later(this, function() {
|
||||
this._drawPlot();
|
||||
|
|
Loading…
Add table
Reference in a new issue