Index fix

This commit is contained in:
Sean Edmunds
2025-03-26 17:02:41 -05:00
parent ed27956d01
commit b46d89721e
2 changed files with 2 additions and 2 deletions

View File

@@ -162,7 +162,7 @@ const BookmarkSettings = () => {
mutateAsync({
method: 'POST',
endpoint: 'api/categories',
body: newGroup,
body: { ...newGroup, categoryIndex: groups.length },
});
closeModal();
}

View File

@@ -393,7 +393,7 @@ function DebouncedGroupSettingsItem({ bookmarkGroup, bookmarks }: any) {
mutateAsync({
method: 'POST',
endpoint: 'api/links',
body: newBookmark,
body: { ...newBookmark, index: bookmarks.length },
});
setPopoverOpened(false);
}