mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-12 08:25:44 +01:00
add check if links exists in order to update permissions directly before fetching
This commit is contained in:
@@ -90,7 +90,7 @@ class SinglePermission extends React.Component<Props, State> {
|
||||
render() {
|
||||
const { permission } = this.state;
|
||||
const { loading, error, namespace, repoName } = this.props;
|
||||
const typeSelector = this.props.permission._links.update ? (
|
||||
const typeSelector = this.props.permission._links && this.props.permission._links.update ? (
|
||||
<td>
|
||||
<TypeSelector
|
||||
handleTypeChange={this.handleTypeChange}
|
||||
|
||||
Reference in New Issue
Block a user