From 4d09860d6b93855e4e2884a3703097994be2258e Mon Sep 17 00:00:00 2001 From: aniket-engg Date: Mon, 21 Sep 2020 19:40:01 +0530 Subject: [PATCH] references improved --- apps/remix-ide/src/app/editor/contextView.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/remix-ide/src/app/editor/contextView.js b/apps/remix-ide/src/app/editor/contextView.js index c5b5da4e1d..797ca69d12 100644 --- a/apps/remix-ide/src/app/editor/contextView.js +++ b/apps/remix-ide/src/app/editor/contextView.js @@ -86,7 +86,7 @@ class ContextView { } } } - if (!this._current || !previous || previous.id !== this._current.id) { + if (!this._current || !previous || previous.id !== this._current.id || (this.previousElement && !this.previousElement.children.length)) { this.previousElement = this._render(this._current, last) } return this.previousElement