diff --git a/src/app/admin/photos/[photoId]/edit/page.tsx b/src/app/admin/photos/[photoId]/edit/page.tsx
index 767ba55b..c9a5c68c 100644
--- a/src/app/admin/photos/[photoId]/edit/page.tsx
+++ b/src/app/admin/photos/[photoId]/edit/page.tsx
@@ -15,13 +15,13 @@ export default async function PhotoEditPage({
const uniqueTags = await getUniqueTagsCached();
- const aiTextGeneration = AI_TEXT_GENERATION_ENABLED;
+ const hasAiTextGeneration = AI_TEXT_GENERATION_ENABLED;
return (
);
};
diff --git a/src/components/FieldSetWithStatus.tsx b/src/components/FieldSetWithStatus.tsx
index 85677d12..d681955d 100644
--- a/src/components/FieldSetWithStatus.tsx
+++ b/src/components/FieldSetWithStatus.tsx
@@ -101,25 +101,38 @@ export default function FieldSetWithStatus({
className={clsx(Boolean(error) && 'error')}
readOnly={readOnly || pending || loading}
/>
- : onChange?.(type === 'checkbox'
- ? e.target.value === 'true' ? 'false' : 'true'
- : e.target.value)}
- type={type}
- autoComplete="off"
- autoCapitalize={!capitalize ? 'off' : undefined}
- readOnly={readOnly || pending || loading}
- className={clsx(
- type === 'text' && 'w-full',
- Boolean(error) && 'error',
- )}
- />}
+ : type === 'textarea'
+ ?