-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Mobile]Fix video upload #16331
[Mobile]Fix video upload #16331
Conversation
@@ -64,7 +64,7 @@ class VideoEdit extends React.Component { | |||
|
|||
componentDidMount() { | |||
const { attributes } = this.props; | |||
if ( attributes.id && attributes.url && ! isURL( attributes.src ) ) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I remember like attributes.url
was not becoming undefined when we close/open a post during the upload. but now it is, so it is now useless and preventing the block from calling mediaUploadSync
. maybe sth changed in the infrastructure that is causing this but I think removing this altogether should be fine.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! 👍
Trying to triger Travis CI with the same changes and see if it still fails JS Unit Tests
Description
Fixes wordpress-mobile/gutenberg-mobile#1173
gutenberg-mobile PR: wordpress-mobile/gutenberg-mobile#1182
How has this been tested?
Tested with gutenberg-mobile PR
Screenshots
Types of changes
Checklist: