fix merge defect

This commit is contained in:
riku6460 2023-12-25 19:55:56 +09:00
parent 26be9bacc8
commit 9bfe864178
No known key found for this signature in database
GPG key ID: 27414FA27DB94CF6
5 changed files with 11 additions and 17 deletions

View file

@ -37,7 +37,7 @@ SPDX-License-Identifier: AGPL-3.0-only
</div>
</template>
<script lang="ts" setup>
import { computed, watch } from 'vue';
import { computed, watch, ref } from 'vue';
import MkInput from '@/components/MkInput.vue';
import MkSelect from '@/components/MkSelect.vue';
import MkSwitch from '@/components/MkSwitch.vue';
@ -66,7 +66,7 @@ const props = defineProps<{
previousExpiresAt?: string;
}
}>();
let expirationDate: Date | null = $ref(null);
const expirationDate = ref<Date | null>(null);
type NonNullType<T> = {
[P in keyof T]: NonNullable<T[P]>
@ -105,9 +105,9 @@ const value = computed({
function renderExpirationDate(empty = false) {
if (value.value.expirationDate && !empty) {
expirationDate = new Date(value.value.expirationDate);
expirationDate.value = new Date(value.value.expirationDate);
} else {
expirationDate = null;
expirationDate.value = null;
}
}