fix: caching problems frontend for version upload (#5252)

This commit is contained in:
Calum H.
2026-01-30 14:50:57 +00:00
committed by GitHub
parent 3dd5314062
commit 3ec9bcf7e7

View File

@@ -1644,11 +1644,13 @@ async function updateProjectRoute() {
}
async function resetProject() {
await invalidateProjectQueries(projectId.value)
await resetProjectV2()
await resetProjectV3()
}
async function resetVersions() {
await invalidateProjectQueries(projectId.value)
await resetVersionsV3()
}
@@ -1659,6 +1661,7 @@ async function invalidateProjectQueries(projectId) {
await queryClient.invalidateQueries({ queryKey: ['project', 'v2', projectId] })
}
await queryClient.invalidateQueries({ queryKey: ['project', 'v3', projectId] })
await queryClient.invalidateQueries({ queryKey: ['project', projectId, 'versions', 'v3'] })
}
// Mutation for patching project data