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:
1 parent
6ec54b6485
commit
412162fa71
1 file changed
+2
-2
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user