forked from extern/egroupware
Make sure sender object is there before using it
This commit is contained in:
parent
6fc6ed7bd9
commit
6f2ec6f33a
@ -872,7 +872,7 @@ var et2_vfsUpload = /** @class */ (function (_super) {
|
||||
return true;
|
||||
};
|
||||
et2_vfsUpload.prototype.getDOMNode = function (sender) {
|
||||
if (sender !== this && sender._type.indexOf('vfs') >= 0) {
|
||||
if (sender && sender !== this && sender._type.indexOf('vfs') >= 0) {
|
||||
var value = sender.getValue && sender.getValue() || sender.options.value || {};
|
||||
var row = jQuery("[data-path='" + (value.path.replace(/'/g, '"')) + "']", this.list);
|
||||
if (sender._type === 'vfs-mime') {
|
||||
|
@ -1001,7 +1001,7 @@ class et2_vfsUpload extends et2_file
|
||||
}
|
||||
|
||||
getDOMNode(sender) {
|
||||
if(sender !== this && sender._type.indexOf('vfs') >= 0 )
|
||||
if(sender && sender !== this && sender._type.indexOf('vfs') >= 0 )
|
||||
{
|
||||
var value = sender.getValue && sender.getValue() || sender.options.value || {};
|
||||
var row = jQuery("[data-path='"+(value.path.replace(/'/g, '"'))+"']",this.list);
|
||||
|
Loading…
Reference in New Issue
Block a user