fix: handled favorite entity data null (#5756)
This commit is contained in:
parent
4a6f646317
commit
dfd3af13cf
2 changed files with 2 additions and 2 deletions
|
|
@ -182,7 +182,7 @@ export const SidebarFavoritesMenu = observer(() => {
|
|||
.map((fav, index) => (
|
||||
<Tooltip
|
||||
key={fav.id}
|
||||
tooltipContent={fav.entity_data ? fav.entity_data.name : fav.name}
|
||||
tooltipContent={fav?.entity_data ? fav.entity_data?.name : fav?.name}
|
||||
position="right"
|
||||
className="ml-2"
|
||||
disabled={!sidebarCollapsed}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue