1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Simplify migration

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton 2021-06-18 11:52:37 -04:00
parent 5a2361855b
commit 75a8119c95

View File

@ -56,7 +56,7 @@ export default {
for (const cluster of clusters) {
const workspaceHotbar = workspaceHotbars.get(cluster.workspace);
if (workspaceHotbar && workspaceHotbars.get(cluster.workspace).items.length < defaultHotbarCells) {
if (workspaceHotbar?.items.length < defaultHotbarCells) {
workspaceHotbar.items.push({
entity: {
uid: cluster.id,