mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
fix add to hotbar
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
parent
6ec54b6485
commit
412162fa71
@ -57,7 +57,7 @@ export class Catalog extends React.Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
addToHotbar(item: CatalogEntityItem) {
|
addToHotbar(item: CatalogEntityItem) {
|
||||||
const hotbar = hotbarStore.getByName("default"); // FIXME
|
const hotbar = hotbarStore.getActive();
|
||||||
|
|
||||||
if (!hotbar) {
|
if (!hotbar) {
|
||||||
return;
|
return;
|
||||||
@ -67,7 +67,7 @@ export class Catalog extends React.Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
removeFromHotbar(item: CatalogEntityItem) {
|
removeFromHotbar(item: CatalogEntityItem) {
|
||||||
const hotbar = hotbarStore.getByName("default"); // FIXME
|
const hotbar = hotbarStore.getActive();
|
||||||
|
|
||||||
if (!hotbar) {
|
if (!hotbar) {
|
||||||
return;
|
return;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user