Skip to content

Commit 16e248b

Browse files
committed
fix: order, async and reset.
1 parent 56fc7f8 commit 16e248b

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

  • src/routes/(console)/project-[region]-[project]/databases/database-[database]

src/routes/(console)/project-[region]-[project]/databases/database-[database]/+layout.svelte

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -211,9 +211,8 @@
211211
<Layout.Stack direction="row" gap="s" justifyContent="flex-end">
212212
<Button text on:click={() => resetSampleFieldsConfig()}>Cancel</Button>
213213
<Button
214-
on:click={() => {
215-
$randomDataModalState.onSubmit?.();
216-
$randomDataModalState.show = false;
214+
on:click={async () => {
215+
await $randomDataModalState.onSubmit?.();
217216
resetSampleFieldsConfig();
218217
}}>Create</Button>
219218
</Layout.Stack>

0 commit comments

Comments
 (0)