Fix crash when loading the permalink view (#2258)
This commit is contained in:
parent
bcad54b6ff
commit
85d9cd8348
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