diff --git a/src/routes/console/project-[project]/databases/database-[database]/collection-[collection]/createDocument.svelte b/src/routes/console/project-[project]/databases/database-[database]/collection-[collection]/createDocument.svelte index d819bf935b..d63d1839ce 100644 --- a/src/routes/console/project-[project]/databases/database-[database]/collection-[collection]/createDocument.svelte +++ b/src/routes/console/project-[project]/databases/database-[database]/collection-[collection]/createDocument.svelte @@ -55,6 +55,9 @@ } onDestroy(() => { + $createDocument.id = null; + $createDocument.document = {}; + $createDocument.attributes = []; $createDocument.permissions = []; });