diff --git a/elements/noflo-main.html b/elements/noflo-main.html index 5b0a2c9b4..b9ec20e2b 100644 --- a/elements/noflo-main.html +++ b/elements/noflo-main.html @@ -570,8 +570,7 @@

{{ label }}

var dialog = document.createElement('noflo-new-runtime'); dialog.addEventListener('addRuntime', function(event) { var runtime = event.detail; - this.userRuntimes.push(runtime); - this.runtimes.push(runtime); + this.fire('runtime', event.detail); }.bind(this)); dialog.user = this.user; document.body.appendChild(dialog);