kthcloud / console

kthcloud web console
https://cloud.cbh.kth.se
MIT License
3 stars 3 forks source link

Fix specs being set to min if greater than min #279

Closed Phillezi closed 1 month ago

Phillezi commented 1 month ago

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.

image

Let me know if I should change anything :)