Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 6070d41

Browse files
fix: recent page removal check
1 parent 12adf82 commit 6070d41

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

‎apps/app-server/src/trpc/api/users/pages/remove-recent-page.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ export async function removeRecentPage({
3333

3434
// Remove page ID from recent page IDs
3535

36-
if (pull(recentPageIds, input.pageId).length === 0) {
36+
const originalLength = recentPageIds.length;
37+
38+
if (pull(recentPageIds, input.pageId).length === originalLength) {
3739
throw new TRPCError({
3840
message: 'Recent page not found.',
3941
code: 'NOT_FOUND',

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /