feat: default registries is set only when there is no registries

This commit is contained in:
Joxit 2021-11-01 10:55:55 +01:00
parent 8fcae3cda4
commit dd26bf66a2
No known key found for this signature in database
GPG key ID: F526592B8E012263

View file

@ -97,7 +97,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
state.snackbarMessage = undefined;
},
onBeforeMount(props) {
if (props.defaultRegistries && props.defaultRegistries.length > 0) {
if (props.defaultRegistries && props.defaultRegistries.length > 0 && getRegistryServers().length === 0) {
setRegistryServers(props.defaultRegistries);
}