mirror of
https://github.com/Sevichecc/raycast-akkoma-extension.git
synced 2025-04-30 14:49:29 +08:00
fix: don't merge bookmark states
This commit is contained in:
parent
e0dcf9154f
commit
8ddb374a26
1 changed files with 2 additions and 2 deletions
|
@ -19,7 +19,7 @@ export default function BookmarkCommand() {
|
|||
await authorize();
|
||||
showToast(Toast.Style.Animated, "Loading bookmarks..☆ミ(o*・ω・)ノ.");
|
||||
const newBookmarks = await apiServer.fetchBookmarks();
|
||||
setBookmarks((prevBookmarks) => [...prevBookmarks, ...newBookmarks]);
|
||||
setBookmarks(newBookmarks);
|
||||
showToast(Toast.Style.Success, "Bookmarked has been loaded \(^o^)/");
|
||||
cache.set("latest_bookmarks", JSON.stringify(newBookmarks));
|
||||
} catch (error) {
|
||||
|
@ -37,7 +37,7 @@ export default function BookmarkCommand() {
|
|||
{bookmarks?.map((bookmark) => (
|
||||
<List.Item
|
||||
title={bookmark.pleroma.content["text/plain"] || bookmark.akkoma.source.content}
|
||||
key={bookmark.uri}
|
||||
key={bookmark.id}
|
||||
detail={<List.Item.Detail markdown={statusParser(bookmark, "idAndDate")} />}
|
||||
actions={
|
||||
<ActionPanel>
|
||||
|
|
Loading…
Reference in a new issue