Index fix
This commit is contained in:
@@ -162,7 +162,7 @@ const BookmarkSettings = () => {
|
|||||||
mutateAsync({
|
mutateAsync({
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
endpoint: 'api/categories',
|
endpoint: 'api/categories',
|
||||||
body: newGroup,
|
body: { ...newGroup, categoryIndex: groups.length },
|
||||||
});
|
});
|
||||||
closeModal();
|
closeModal();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -393,7 +393,7 @@ function DebouncedGroupSettingsItem({ bookmarkGroup, bookmarks }: any) {
|
|||||||
mutateAsync({
|
mutateAsync({
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
endpoint: 'api/links',
|
endpoint: 'api/links',
|
||||||
body: newBookmark,
|
body: { ...newBookmark, index: bookmarks.length },
|
||||||
});
|
});
|
||||||
setPopoverOpened(false);
|
setPopoverOpened(false);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user