Merge pull request #2859 from omnivore-app/fix/undo-on-web

fix labels and highlights were deleted when deleting items
This commit is contained in:
Hongbo Wu 2023-10-05 12:02:36 +08:00 committed by GitHub
commit 32b15b3ba9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 5 deletions

View file

@ -672,10 +672,6 @@ export const setBookmarkArticleResolver = authorized<
page.id,
{
state: ArticleSavingRequestStatus.Deleted,
labels: [],
highlights: [],
readingProgressAnchorIndex: 0,
readingProgressPercent: 0,
},
pageContext
)

View file

@ -765,7 +765,6 @@ describe('Article API', () => {
await graphqlRequest(query, authToken).expect(200)
const page = await getPageById(articleId)
expect(page?.state).to.eql(ArticleSavingRequestStatus.Deleted)
expect(page?.highlights).to.eql([])
})
})
})