Using different Ids for HotbarIcons

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
Alex Andreev committed 2021-06-25 15:50:13 +03:00
1 parent d9eb9125cf
commit 776432611a
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -173,7 +173,7 @@ export class Catalog extends React.Component<Props> {
renderIcon(item: CatalogEntityItem<CatalogEntity>) { renderIcon(item: CatalogEntityItem<CatalogEntity>) {
return ( return (
<HotbarIcon <HotbarIcon
uid={item.getId()} uid={`catalog-icon-${item.getId()}`}
title={item.getName()} title={item.getName()}
source={item.source} source={item.source}
src={item.entity.spec.icon?.src} src={item.entity.spec.icon?.src}
@@ -160,7 +160,7 @@ export class HotbarMenu extends React.Component<Props> {
/> />
) : ( ) : (
<HotbarIcon <HotbarIcon
uid={item.entity.uid} uid={`hotbar-icon-${item.entity.uid}`}
title={item.entity.name} title={item.entity.name}
source={item.entity.source} source={item.entity.source}
menuItems={disabledMenuItems} menuItems={disabledMenuItems}