summaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2020-12-08 00:32:00 +0900
committersyuilo <syuilotan@yahoo.co.jp>2020-12-08 00:32:00 +0900
commitc2d79450eaf356fcb639850b0c65fb92cf90a16d (patch)
treebb03412349b63c79fab0dbdda11825a7a1594c60 /src/client
parent:art: (diff)
downloadmisskey-c2d79450eaf356fcb639850b0c65fb92cf90a16d.tar.gz
misskey-c2d79450eaf356fcb639850b0c65fb92cf90a16d.tar.bz2
misskey-c2d79450eaf356fcb639850b0c65fb92cf90a16d.zip
Pagesで変数削除するとそれ以外の変数が複製されるみたいなバグを修正
Diffstat (limited to 'src/client')
-rw-r--r--src/client/pages/page-editor/page-editor.vue7
1 files changed, 1 insertions, 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() {