opsmill / infrahub

Infrahub - A new approach to Infrastructure Management
https://opsmill.com/
GNU Affero General Public License v3.0
181 stars 7 forks source link

Kind select fix when there is no objects to select #3788

Closed pa-lem closed 2 months ago

pa-lem commented 2 months ago

For the kind selector on relationships of cardinality one, when there was no objects to choose after having selecting a kind, the options from the parent were used (the list of the kinds) because of the props destructuring

To fix that, the options props is manually defined as empty array, it's populated with the async load

Before:

image

After:

image