Fix “open” link of media modal not closing modal (#16524)

lolsob-rspec
Claire 2021-07-25 01:13:46 +02:00 committed by GitHub
parent f67e4e70df
commit d65262ae8b
1 changed files with 5 additions and 1 deletions

View File

@ -114,7 +114,11 @@ class Footer extends ImmutablePureComponent {
return; return;
} }
const { status } = this.props; const { status, onClose } = this.props;
if (onClose) {
onClose();
}
router.history.push(`/statuses/${status.get('id')}`); router.history.push(`/statuses/${status.get('id')}`);
} }