mirror of
https://github.com/utopia-os/utopia-ui.git
synced 2025-12-13 07:46:10 +00:00
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:
parent
d87363faf1
commit
a6cd9dbeb2
@ -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,
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user