chore: fix instant form handling

This commit is contained in:
syuilo
2022-01-27 17:38:02 +09:00
parent 47edc18931
commit 779bd244a6
3 changed files with 4 additions and 3 deletions

View File

@ -102,7 +102,7 @@ const props = withDefaults(defineProps<{
initialLocalOnly?: boolean;
initialVisibleUsers?: misskey.entities.User[];
initialNote?: misskey.entities.Note;
share?: boolean;
instant?: boolean;
fixed?: boolean;
autofocus?: boolean;
}>(), {
@ -641,7 +641,7 @@ onMounted(() => {
nextTick(() => {
// 書きかけの投稿を復元
if (!props.share && !props.mention && !props.specified) {
if (!props.instant && !props.mention && !props.specified) {
const draft = JSON.parse(localStorage.getItem('drafts') || '{}')[draftKey];
if (draft) {
text = draft.data.text;