I am setting the initial state of the max values of the resoures specs to the max value of 20 instead of initally setting it to the min value and then updating it to the max value in a useEffect call later in the code.
I also made it so that the specs get updated if they change on the resource, unless editing is set to true.
Fixes the issue described here #278
I am setting the initial state of the max values of the resoures specs to the max value of 20 instead of initally setting it to the min value and then updating it to the max value in a useEffect call later in the code.
I also made it so that the specs get updated if they change on the resource, unless editing is set to true.
Let me know if I should change anything :)