diff --git a/src/renderer/components/hotbar/hotbar-menu.tsx b/src/renderer/components/hotbar/hotbar-menu.tsx index f40ddd8108..3fe6a7ebfa 100644 --- a/src/renderer/components/hotbar/hotbar-menu.tsx +++ b/src/renderer/components/hotbar/hotbar-menu.tsx @@ -73,17 +73,17 @@ class NonInjectedHotbarMenu extends React.Component { const hotbar = this.props.hotbarStore; hotbar.removeFromHotbar(uid); - } + }; - addItem(entity: CatalogEntity, index = -1) { + addItem = (entity: CatalogEntity, index = -1) => { const hotbar = this.props.hotbarStore; hotbar.addToHotbar(entity, index); - } + }; getMoveAwayDirection(entityId: string, cellIndex: number) { const draggableItemIndex = this.hotbar.items.findIndex(item => item?.entity.uid == entityId);