close permalink on delete of focused post ID (#1757)
This commit is contained in:
parent
b259ebbb18
commit
0bb21f5374
1 changed files with 4 additions and 0 deletions
|
|
@ -109,6 +109,10 @@ export default class Permalink extends PureComponent {
|
|||
}
|
||||
|
||||
componentWillReceiveProps(nextProps) {
|
||||
if (nextProps.channelId === '') {
|
||||
this.handleClose();
|
||||
}
|
||||
|
||||
if (this.props.channelName !== nextProps.channelName) {
|
||||
this.setState({title: nextProps.channelName});
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue