Fix wrong ID after update
Some checks failed
Chromatic / Run Chromatic (push) Has been cancelled

This commit is contained in:
diondiondion 2025-11-21 17:08:13 +01:00
parent d5589e6fb9
commit 3a4b11186d

View File

@ -74,10 +74,9 @@ class ListTimeline extends PureComponent {
}
componentDidUpdate (prevProps) {
const { dispatch } = this.props;
const { id } = prevProps.params;
const { dispatch, params: {id} } = this.props;
if (id !== this.props.params.id) {
if (id !== prevProps.params.id) {
if (this.disconnect) {
this.disconnect();
this.disconnect = null;