From 82dc863d33b4c0ecb23bf6e8440fbacda285b037 Mon Sep 17 00:00:00 2001 From: Manuel Saelices Date: Wed, 25 Sep 2019 12:32:36 +0200 Subject: [PATCH] fix: fix odd App crash while using v-if inside the RLV's template --- platform/nativescript/renderer/ViewNode.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/nativescript/renderer/ViewNode.js b/platform/nativescript/renderer/ViewNode.js index c804937b..f64d08be 100644 --- a/platform/nativescript/renderer/ViewNode.js +++ b/platform/nativescript/renderer/ViewNode.js @@ -172,7 +172,7 @@ export default class ViewNode { return this.appendChild(childNode) } - if (referenceNode.parentNode !== this) { + if (referenceNode.parentNode && referenceNode.parentNode !== this) { throw new Error( `Can't insert child, because the reference node has a different parent.` )