From 5d35a37ccf013badde9b498c059921884c0c268d Mon Sep 17 00:00:00 2001 From: Chocolate Pie <106949016+chocolate-pie@users.noreply.github.com> Date: Wed, 5 Jul 2023 06:59:43 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20=E5=9E=8B=E5=AE=9A=E7=BE=A9?= =?UTF-8?q?=E3=82=92=E3=82=88=E3=82=8A=E3=82=88=E3=81=8F=E3=81=97=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/frontend/src/components/MkAbuseReportResolver.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/frontend/src/components/MkAbuseReportResolver.vue b/packages/frontend/src/components/MkAbuseReportResolver.vue index b970032d49..583fc9b46b 100644 --- a/packages/frontend/src/components/MkAbuseReportResolver.vue +++ b/packages/frontend/src/components/MkAbuseReportResolver.vue @@ -64,8 +64,10 @@ const props = defineProps<{ targetUserPattern: string | null; reporterPattern: string | null; reportContentPattern: string | null; + expirationDate: string | null; expiresAt: string; forward: boolean; + beforeExpiresAt?: string; } }>(); let expirationDate: string | null = $ref(null); @@ -83,8 +85,10 @@ const value = computed({ targetUserPattern: '', reporterPattern: '', reportContentPattern: '', + expirationDate: null, expiresAt: 'indefinitely', forward: false, + beforeExpiresAt: null, }; for (const [key, _value] of Object.entries(data)) { if (_value === null) { @@ -94,7 +98,7 @@ const value = computed({ if (props.modelValue && props.editable) { emit('update:modelValue', data); } - return data as unknown as Exclude, undefined>; + return data as NonNullType; }, set(updateValue) { if (props.modelValue && props.editable) {