Skip to content

Commit b3ea4f8

Browse files
junzero741claude
andcommitted
fix(frontend): initialize autoSaveRef with explicit undefined for TypeScript compatibility
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 57b9a93 commit b3ea4f8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/frontend/src/app/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ export default function Page() {
102102
);
103103
}
104104

105-
const autoSaveRef = useRef<() => Promise<void>>();
105+
const autoSaveRef = useRef<(() => Promise<void>) | undefined>(undefined);
106106
autoSaveRef.current = async () => {
107107
if (!shouldAutoSave(title, content)) return;
108108
const now = new Date().toISOString();

0 commit comments

Comments
 (0)