Skip to content

Commit 7aca669

Browse files
authored
Fix community remote not being editable. (#267)
1 parent 5a63c97 commit 7aca669

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/containers/repositories/repository-list.tsx

+6
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,12 @@ class RepositoryList extends React.Component<RouteComponentProps, IState> {
112112
try {
113113
const distro_path =
114114
remoteToEdit.repositories[0].distributions[0].base_path;
115+
116+
// Pulp complains about auth_url = null, so make sure the auth_url
117+
// property is unset if its null or empty.
118+
if (!remoteToEdit['auth_url']) {
119+
delete remoteToEdit['auth_url'];
120+
}
115121
RemoteAPI.update(distro_path, remoteToEdit)
116122
.then(r => {
117123
this.setState(

0 commit comments

Comments
 (0)