Update dependencies and improve stateWord logic in Activity component

- Updated '@iconify-json/lucide' dependency to version 1.2.35 in package.json and pnpm-lock.yaml for compatibility.
- Enhanced stateWord logic in Activity component to handle cases where the state string may be empty, ensuring it defaults to 'secret' when necessary.
This commit is contained in:
2025-04-07 13:22:35 +02:00
parent 4892e3508d
commit 5ee900ef23
3 changed files with 8 additions and 7 deletions

View File

@@ -50,7 +50,8 @@ const getActivity = computed(() => {
.replace('Workspace:', '')
.trim()
: ''
const stateWord = state.split(' ').length >= 2 ? state.split(' ')[1] : t('secret')
const stateWord = state && state.split(' ').length >= 2 ? state.split(' ')[1] : t('secret')
const ago = useTimeAgo(timestamps.start, {
messages: activityMessages[locale.value] as UseTimeAgoMessages,
}).value