Fix crash when loading the permalink view (#2258)
This commit is contained in:
parent
e480dcfacb
commit
fe1fc259ad
1 changed files with 1 additions and 1 deletions
|
|
@ -100,7 +100,7 @@ export default class Permalink extends PureComponent {
|
|||
newState.channelNameState = nextProps.channelName;
|
||||
}
|
||||
|
||||
if (nextProps.postIds.length > 0 && nextProps.postIds !== prevState.postIdsState) {
|
||||
if (nextProps.postIds && nextProps.postIds.length > 0 && nextProps.postIds !== prevState.postIdsState) {
|
||||
newState.postIdsState = nextProps.postIds;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue