fix: allow null comment in server validation, remove debug logging
This commit is contained in:
@@ -85,9 +85,6 @@ export function AdminTestChecklistPage() {
|
||||
onSuccess: () => {
|
||||
queryClient.invalidateQueries({ queryKey: ['admin', 'test-checklist'] })
|
||||
},
|
||||
onError: (error) => {
|
||||
console.warn('updateTestChecklistItem error:', error)
|
||||
},
|
||||
})
|
||||
|
||||
const resetMutation = useMutation({
|
||||
@@ -115,9 +112,7 @@ export function AdminTestChecklistPage() {
|
||||
|
||||
const handleStatusClick = useCallback(
|
||||
(itemKey: string) => {
|
||||
console.warn('handleStatusClick:', itemKey, results[itemKey])
|
||||
const current = statusFromResult(results[itemKey])
|
||||
console.warn('current status:', current)
|
||||
if (current === 'failed') {
|
||||
updateMutation.mutate({ itemKey, passed: false, comment: null })
|
||||
} else if (current === 'unchecked') {
|
||||
|
||||
Reference in New Issue
Block a user