Skip to content

Commit 568e757

Browse files
committed
Static tests
1 parent 4099b3e commit 568e757

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/code/Magento/ProductVideo/view/adminhtml/web/js/new-video-dialog.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,7 @@ define([
283283
*/
284284
_onGetVideoInformationClick: function () {
285285
var videoForm = this.element.find(this._videoFormSelector);
286+
286287
videoForm.validation();
287288

288289
if (this.element.find(this._videoUrlSelector).valid()) {
@@ -304,8 +305,9 @@ define([
304305
* @private
305306
*/
306307
_onGetVideoInformationStartRequest: function () {
308+
var videoForm = this.element.find(this._videoFormSelector);
309+
307310
try {
308-
var videoForm = this.element.find(this._videoFormSelector);
309311
videoForm.validation('clearError');
310312
} catch (e) {
311313
// Do nothing

0 commit comments

Comments
 (0)