Skip to content

Commit

Permalink
Merge pull request #2960 from amitsingh-007/b-fix-bookmark-save
Browse files Browse the repository at this point in the history
  • Loading branch information
amitsingh-007 authored Mar 31, 2024
2 parents 7bd7e47 + 3c8d9a7 commit 91cc9c8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions apps/extension/src/BookmarksPanel/store/useBookmarkStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,8 @@ const useBookmarkStore = create<State>()((set, get) => ({
) => {
const { contextBookmarks, urlList, folders, addToUpdateTaggedPersons } =
get();
const oldBookmark = contextBookmarks[pos];
if (oldBookmark.isDir) {
const oldBookmark = contextBookmarks.at(pos); // If undefined, it's a new bookmark
if (oldBookmark?.isDir) {
throw new Error(`Item at pos: ${pos} not a bookmark`);
}
const isFolderChange = oldFolder !== newFolder;
Expand All @@ -164,7 +164,7 @@ const useBookmarkStore = create<State>()((set, get) => ({
// Update url in tagged persons
addToUpdateTaggedPersons(
urlHash,
oldBookmark.taggedPersons,
oldBookmark?.taggedPersons ?? [],
updatedBookmark.taggedPersons
);

Expand Down
2 changes: 1 addition & 1 deletion packages/configs/manifest/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"key": "fdnekjijeofacghkammknogmiapepano",
"version": "20.3.1",
"version": "20.3.2",
"manifest_version": 3,
"short_name": "Bypass Links",
"name": "Bypass Links",
Expand Down

1 comment on commit 91cc9c8

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deploy preview for bypass-links ready!

✅ Preview
https://bypass-links-rbi2hx9q8-amitsingh-007.vercel.app

Built with commit 91cc9c8.
This pull request is being automatically deployed with vercel-action

Please sign in to comment.