diff --git a/src/migrations/hotbar-store/5.0.0-beta.11.ts b/src/migrations/hotbar-store/5.0.0-beta.11.ts index 737f407f83..9ad4feb0bf 100644 --- a/src/migrations/hotbar-store/5.0.0-beta.11.ts +++ b/src/migrations/hotbar-store/5.0.0-beta.11.ts @@ -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,