Remove old attribute

This commit is contained in:
gidsi 2019-04-04 00:01:30 +02:00
commit f21f857e31
No known key found for this signature in database
GPG key ID: B47291090A6E5604
2 changed files with 1 additions and 4 deletions

View file

@ -67,13 +67,11 @@ export class UrlList extends React.Component {
<TableCell>
{!spaceurl.validated ? <Button
onClick={() => this.validateSpaceUrl(spaceurl)}
primary
>validated</Button> : null}
</TableCell>
<TableCell>
<Button
onClick={() => this.deleteSpaceUrl(spaceurl)}
primary
>
delete
</Button>
@ -86,7 +84,6 @@ export class UrlList extends React.Component {
<TextField
name={'secret-input'}
onChange={(event)=> this.setState({ secret: event.target.value })}
ref={ref => (this.secretInput = ref)}
/>
</div>
);

View file

@ -84,5 +84,5 @@ export default handleActions({
return newState;
},
[SPACEURL_DELETE]: (state, { payload }) => state.items.filter(ele => ele.id !== payload),
[SPACEURL_DELETE]: (state, { payload }) => ({ items: state.items.filter(ele => ele.id === payload.id) }),
}, { items: [] });