mirror of
https://github.com/speatzle/nfsense.git
synced 2025-05-10 18:38:22 +00:00
Only Set Initial Values if not Undefined
This commit is contained in:
parent
35fc517b13
commit
89abf82d1b
1 changed files with 2 additions and 1 deletions
|
@ -35,7 +35,8 @@ const onSubmit = handleSubmit(values => {
|
|||
// idk why this is needed
|
||||
Object.assign(values, initialValues);
|
||||
onMounted(async() => {
|
||||
setValues(initialValues);
|
||||
if (initialValues != undefined)
|
||||
setValues(initialValues);
|
||||
});
|
||||
|
||||
</script>
|
||||
|
|
Loading…
Add table
Reference in a new issue