The number 0 is considered false, so if you you fetch 0
the or would kick in, as it is considered false.. Therefore it defaults to 10.
You will need to use if else conditional to set a default. If undefined
The number 0 is considered false, so if you you fetch 0
the or would kick in, as it is considered false.. Therefore it defaults to 10.
You will need to use if else conditional to set a default. If undefined