Commit af5f4796 authored by Matija Obreza's avatar Matija Obreza
Browse files

Small fixes:

- PermissionsTableForm requires a better key
- Authorize doesn't need to pass any additional properties
parent a2b778cb
......@@ -42,8 +42,8 @@ class Authorize extends React.Component<IAuthorizeProps, any> {
}
public render() {
const {children, ...rest} = this.props;
return this.state.show && children ? React.cloneElement(children, rest) : null;
const { children } = this.props;
return this.state.show && children ? React.cloneElement(children) : null;
}
}
......
......@@ -91,7 +91,7 @@ class PermissionsTableForm extends React.Component<IPermissionsTableFormProps, a
const owner: boolean = this.props.initialValues.ownerSid.sid === sid;
return (
<TableRow key={ index }>
<TableRow key={ `${index}-${sid}` }>
<TableCell>
{
inherits || !isNewEntry ? sid : (
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment