potentially fix an app crash

Potentially fixes app crash on
https://next.docutopia.de/item/54870c5f-9b37-4bcb-9838-59a76561c4d5
caused by an field being null
This commit is contained in:
Ulf Gebhardt 2024-11-24 01:23:20 +01:00
parent d87363faf1
commit a6cd9dbeb2
Signed by: ulfgebhardt
GPG Key ID: DA6B843E748679C9

View File

@ -50,7 +50,7 @@ export const TabsView = ({
const appState = useAppState()
const getUserProfile = (id: string) => {
return items.find(
(i) => i.user_created.id === id && i.layer?.itemType.name === appState.userType,
(i) => i.user_created?.id === id && i.layer?.itemType.name === appState.userType,
)
}