mirror of
https://github.com/modrinth/code.git
synced 2026-09-03 13:36:48 +00:00
fix: queue store stability + persistence (#5909)
* fix: queue store stability + persistence * fix: lint * feat: set to draft btn * feat: migrate to indexed db rather than local storage for moderation checklist storage (keep session + perms alone) * fix: storage cleanup + lint * fix: invalidation fixes
This commit is contained in:
@@ -246,8 +246,14 @@ const reviewItem = computed(() => {
|
||||
}
|
||||
})
|
||||
|
||||
function handleMarkComplete(_projectId: string) {
|
||||
queryClient.invalidateQueries({ queryKey: ['tech-reviews'] })
|
||||
async function handleMarkComplete(projectId: string) {
|
||||
await Promise.all([
|
||||
queryClient.invalidateQueries({ queryKey: ['tech-reviews'] }),
|
||||
queryClient.invalidateQueries({ queryKey: ['tech-review-project-report', projectId] }),
|
||||
queryClient.invalidateQueries({ queryKey: ['project', projectId] }),
|
||||
queryClient.invalidateQueries({ queryKey: ['project', 'v2', projectId] }),
|
||||
queryClient.invalidateQueries({ queryKey: ['project', 'v3', projectId] }),
|
||||
])
|
||||
}
|
||||
|
||||
const maliciousSummaryModalRef = ref<InstanceType<typeof MaliciousSummaryModal>>()
|
||||
|
||||
Reference in New Issue
Block a user