mirror of
https://github.com/versia-pub/frontend.git
synced 2025-12-06 08:28:20 +01:00
fix: 🐛 Fix dev breaking when signed out
This commit is contained in:
parent
53b71afdd5
commit
f8e219889c
|
|
@ -46,8 +46,8 @@ export const state = reactive<ComposerState>({
|
|||
watch(
|
||||
state,
|
||||
(newState) => {
|
||||
const characterLimit = (identity.value as Identity).instance
|
||||
.configuration.statuses.max_characters;
|
||||
const characterLimit =
|
||||
identity.value?.instance.configuration.statuses.max_characters ?? 0;
|
||||
const characterCount = newState.rawContent.length;
|
||||
|
||||
state.canSend =
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
</SidebarProvider>
|
||||
<MobileNavbar v-if="identity" />
|
||||
<Preferences />
|
||||
<ComposerDialog />
|
||||
<ComposerDialog v-if="identity" />
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
<template>
|
||||
<slot />
|
||||
<ComposerDialog />
|
||||
<ComposerDialog v-if="identity" />
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import ComposerDialog from "~/components/composer/dialog.vue";
|
||||
</script>
|
||||
</script>
|
||||
|
|
|
|||
Loading…
Reference in a new issue