diff --git a/components/publish/PublishWidget.vue b/components/publish/PublishWidget.vue index 080722ae..f8a8933a 100644 --- a/components/publish/PublishWidget.vue +++ b/components/publish/PublishWidget.vue @@ -23,7 +23,7 @@ const status = $computed(() => { }) const currentVisibility = $computed(() => { - return STATUS_VISIBILITIES.find(v => v.value === status.visibility)! + return STATUS_VISIBILITIES.find(v => v.value === status.visibility) || STATUS_VISIBILITIES[0] }) let isUploading = $ref(false) @@ -148,9 +148,12 @@ onUnmounted(() => {
+
+ - - -
-