summaryrefslogtreecommitdiff
path: root/packages/frontend/src/pages/page-editor/page-editor.vue
diff options
context:
space:
mode:
authorsyuilo <4439005+syuilo@users.noreply.github.com>2025-11-07 12:55:01 +0900
committersyuilo <4439005+syuilo@users.noreply.github.com>2025-11-07 12:55:01 +0900
commitbd9041bd8f6486243a33e39991f5233ed91ff078 (patch)
tree9078ca6ead581b88eb1379691bdca5a1ca4e3c9a /packages/frontend/src/pages/page-editor/page-editor.vue
parentfix type (diff)
downloadmisskey-bd9041bd8f6486243a33e39991f5233ed91ff078.tar.gz
misskey-bd9041bd8f6486243a33e39991f5233ed91ff078.tar.bz2
misskey-bd9041bd8f6486243a33e39991f5233ed91ff078.zip
fix type
Diffstat (limited to 'packages/frontend/src/pages/page-editor/page-editor.vue')
-rw-r--r--packages/frontend/src/pages/page-editor/page-editor.vue6
1 files changed, 2 insertions, 4 deletions
diff --git a/packages/frontend/src/pages/page-editor/page-editor.vue b/packages/frontend/src/pages/page-editor/page-editor.vue
index c446386a1c..3b36f7fa2d 100644
--- a/packages/frontend/src/pages/page-editor/page-editor.vue
+++ b/packages/frontend/src/pages/page-editor/page-editor.vue
@@ -216,13 +216,14 @@ async function add() {
if (canceled || type == null) return;
const id = genId();
+
+ // TODO: page-editor.el.section.vueのと共通化
if (type === 'text') {
content.value.push({
id,
type,
text: '',
});
- return;
} else if (type === 'section') {
content.value.push({
id,
@@ -230,14 +231,12 @@ async function add() {
title: '',
children: [],
});
- return;
} else if (type === 'image') {
content.value.push({
id,
type,
fileId: null,
});
- return;
} else if (type === 'note') {
content.value.push({
id,
@@ -245,7 +244,6 @@ async function add() {
detailed: false,
note: null,
});
- return;
}
}