From c2d79450eaf356fcb639850b0c65fb92cf90a16d Mon Sep 17 00:00:00 2001
From: syuilo <syuilotan@yahoo.co.jp>
Date: Tue, 8 Dec 2020 00:32:00 +0900
Subject: [PATCH] =?UTF-8?q?Pages=E3=81=A7=E5=A4=89=E6=95=B0=E5=89=8A?=
 =?UTF-8?q?=E9=99=A4=E3=81=99=E3=82=8B=E3=81=A8=E3=81=9D=E3=82=8C=E4=BB=A5?=
 =?UTF-8?q?=E5=A4=96=E3=81=AE=E5=A4=89=E6=95=B0=E3=81=8C=E8=A4=87=E8=A3=BD?=
 =?UTF-8?q?=E3=81=95=E3=82=8C=E3=82=8B=E3=81=BF=E3=81=9F=E3=81=84=E3=81=AA?=
 =?UTF-8?q?=E3=83=90=E3=82=B0=E3=82=92=E4=BF=AE=E6=AD=A3?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 src/client/pages/page-editor/page-editor.vue | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/src/client/pages/page-editor/page-editor.vue b/src/client/pages/page-editor/page-editor.vue
index abf3264b48..5c3bd3aa66 100644
--- a/src/client/pages/page-editor/page-editor.vue
+++ b/src/client/pages/page-editor/page-editor.vue
@@ -342,12 +342,7 @@ export default defineComponent({
 		},
 
 		removeVariable(v) {
-			const i = this.variables.findIndex(x => x.name === v.name);
-			const newValue = [
-				...this.variables.slice(0, i),
-				...this.variables.slice(i + 1)
-			];
-			this.variables = newValue;
+			this.variables = this.variables.filter(x => x.name !== v.name);
 		},
 
 		getPageBlockList() {