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>
This commit is contained in:
Calum H.
2026-01-13 00:13:21 +00:00
committed by GitHub
parent 40f5db64d8
commit 4bbc5905e4
2 changed files with 2 additions and 2 deletions

View File

@@ -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'),

View File

@@ -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()