From 4bbc5905e466cd6c62ec7bf0bec7f24d6973b9ba Mon Sep 17 00:00:00 2001 From: "Calum H." Date: Tue, 13 Jan 2026 00:13:21 +0000 Subject: [PATCH] fix: dont remount components for project page every time route changes (#5105) * fix: dont remount components for project page every time route changes * remove ts from macro --------- Co-authored-by: Prospector <6166773+Prospector@users.noreply.github.com> --- .../components/ui/moderation/checklist/ModerationChecklist.vue | 2 +- apps/frontend/src/pages/[type]/[id].vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/frontend/src/components/ui/moderation/checklist/ModerationChecklist.vue b/apps/frontend/src/components/ui/moderation/checklist/ModerationChecklist.vue index c905da00..ea5d6887 100644 --- a/apps/frontend/src/components/ui/moderation/checklist/ModerationChecklist.vue +++ b/apps/frontend/src/components/ui/moderation/checklist/ModerationChecklist.vue @@ -1082,7 +1082,7 @@ function handleKeybinds(event: KeyboardEvent) { tryToggleCollapse: () => emit('toggleCollapsed'), tryResetProgress: resetProgress, - tryExitModeration: () => emit('exit'), + tryExitModeration: handleExit, tryApprove: () => sendMessage(projectV2.value.requested_status ?? 'approved'), tryReject: () => sendMessage('rejected'), diff --git a/apps/frontend/src/pages/[type]/[id].vue b/apps/frontend/src/pages/[type]/[id].vue index b239b466..60c8c5ab 100644 --- a/apps/frontend/src/pages/[type]/[id].vue +++ b/apps/frontend/src/pages/[type]/[id].vue @@ -1020,7 +1020,7 @@ import { useModerationStore } from '~/store/moderation.ts' import { reportProject } from '~/utils/report-helpers.ts' definePageMeta({ - key: (route) => route.fullPath, + key: (route) => `${route.params.id}`, }) const data = useNuxtApp()