fix(notes): proper default settings when resetting state

This commit is contained in:
Corentin Thomasset 2025-07-22 21:08:29 +02:00
parent 32a56c6770
commit fe5650b60c
No known key found for this signature in database
GPG Key ID: DBD997E935996158

View File

@ -131,10 +131,11 @@ export const CreateNotePage: Component = () => {
setError(null);
setIsPublic(true);
setIsNoteCreated(false);
setTtlInSeconds(3600);
setDeleteAfterReading(false);
setTtlInSeconds(config.defaultNoteTtlSeconds);
setDeleteAfterReading(config.defaultDeleteNoteAfterReading);
setUploadedFiles([]);
setIsNoteCreating(false);
setHasNoExpiration(config.defaultNoteNoExpiration);
}
onMount(() => {