mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-02-24 04:00:59 +01:00
Merge pull request #8345 from 01zulfi/web/fix-toolbar-bug
web: fix toolbar crash
This commit is contained in:
@@ -680,7 +680,8 @@ type ResolvedGroup = {
|
||||
};
|
||||
function getGroup(items: TreeNode[], groupId: string): ResolvedGroup | null {
|
||||
const index = items.findIndex((item) => item.id === groupId);
|
||||
const group = items[index];
|
||||
const group = items.at(index);
|
||||
if (!group) return null;
|
||||
if (!isGroup(group) && !isSubgroup(group)) return null;
|
||||
|
||||
const nextGroupIndex = items.findIndex(
|
||||
|
||||
Reference in New Issue
Block a user