will an empty input field override the current database value
if any of the input is empty will it override the current value in the database?

10 Replies
empty string yes
undefined no
Any Possible solutions without using if statements?
...(someVar && {somevar})
Am lost
Conditions?
you can put as many of these as you want
if the variable is nullish, it evaluates to nothing
Oh nice
I will use
Just to be safe
Is that okay?
sure but unecessary
"" == false
What of in a case of numbers
Where default is
there's no such thing as an empty number
0 is nullish
but you were asking about empty input
This approach seems i have to make the field in the database nullable