Fix attached media uploads not being cleared when replying to a post (#23504)
This commit is contained in:
parent
71ae17e8f5
commit
bae17ebe5e
2 changed files with 7 additions and 0 deletions
|
@ -330,6 +330,8 @@ export default function compose(state = initialState, action) {
|
|||
map.set('preselectDate', new Date());
|
||||
map.set('idempotencyKey', uuid());
|
||||
|
||||
map.update('media_attachments', list => list.filter(media => media.get('unattached')));
|
||||
|
||||
if (action.status.get('language') && !action.status.has('translation')) {
|
||||
map.set('language', action.status.get('language'));
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue