mirror of
https://github.com/CorentinTh/enclosed.git
synced 2026-01-09 07:44:26 +08:00
fix(notes): proper default settings when resetting state
This commit is contained in:
parent
32a56c6770
commit
fe5650b60c
@ -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(() => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user