fix(ui): prevent duplicate views

This commit is contained in:
Guillaume Chau
2018-05-11 22:26:44 +02:00
parent 76f95c84a5
commit e011bc04fd
@@ -49,6 +49,7 @@ function findOne (id) {
}
function add (view, context) {
remove(view.id, context)
const views = getViews()
views.push(view)
context.pubsub.publish(channels.VIEW_ADDED, {