mirror of https://github.com/vector-im/riot-web
Fix creating polls outside of threads (#7711)
parent
9adfdb8fed
commit
226ccfc45c
|
@ -321,7 +321,7 @@ class PollButton extends React.PureComponent<IPollButtonProps> {
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
const threadId = this.props.relation.rel_type === RelationType.Thread
|
const threadId = this.props.relation?.rel_type === RelationType.Thread
|
||||||
? this.props.relation.event_id
|
? this.props.relation.event_id
|
||||||
: null;
|
: null;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue