Fix TypeScript error with proper typing

This commit is contained in:
Patrick Britton 2026-02-16 10:15:32 -06:00
parent 1facff9d2a
commit 619c629b6b

View file

@ -174,11 +174,11 @@ export default function AIModerationPage() {
setTesting(true);
const startTime = Date.now();
try {
const data = {
const isImage = selectedType.includes('image') || selectedType === 'video';
const data: any = {
moderation_type: selectedType,
engine: selectedEngine,
};
const isImage = selectedType.includes('image') || selectedType === 'video';
if (isImage) {
data.image_url = testInput; // Use the uploaded file URL
} else {