fix add to hotbar

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
Jari Kolehmainen committed 2021-04-21 06:59:06 +03:00
1 parent 6ec54b6485
commit 412162fa71
1 file changed
+2 -2
+2 -2
View File
@@ -57,7 +57,7 @@ export class Catalog extends React.Component {
}
addToHotbar(item: CatalogEntityItem) {
const hotbar = hotbarStore.getByName("default"); // FIXME
const hotbar = hotbarStore.getActive();
if (!hotbar) {
return;
@@ -67,7 +67,7 @@ export class Catalog extends React.Component {
}
removeFromHotbar(item: CatalogEntityItem) {
const hotbar = hotbarStore.getByName("default"); // FIXME
const hotbar = hotbarStore.getActive();
if (!hotbar) {
return;