fix: archive list title only with loaded list

This commit is contained in:
Dominik Pschenitschni 2022-11-22 12:43:07 +01:00
parent db7bc4121f
commit 9cfc14773b
Signed by: dpschen
GPG Key ID: B257AC0149F43A77
1 changed files with 4 additions and 1 deletions

View File

@ -28,7 +28,10 @@ const listStore = useListStore()
const route = useRoute()
const list = computed(() => listStore.getListById(route.params.listId))
useTitle(() => t('list.archive.title', {list: list.value.title}))
useTitle(() => list.value
? t('list.archive.title', {list: list.value.title})
: undefined,
)
async function archiveList(onClose: () => void) {
try {