Fix error TypeError: Cannot read properties of null (reading '0')

This commit is contained in:
Hadi Nategh 2022-05-30 17:19:23 +02:00
parent 017901a317
commit ae75801033

View File

@ -155,7 +155,7 @@ export function egwDragActionImplementation()
ai.doRegisterAction = function(_aoi, _callback, _context)
{
var node = _aoi.getDOMNode()[0] ? _aoi.getDOMNode()[0] : _aoi.getDOMNode();
var node = _aoi.getDOMNode() && _aoi.getDOMNode()[0] ? _aoi.getDOMNode()[0] : _aoi.getDOMNode();
if (node)
{
@ -450,7 +450,7 @@ export function egwDropActionImplementation()
ai.doRegisterAction = function(_aoi, _callback, _context)
{
var node = _aoi.getDOMNode()[0] ? _aoi.getDOMNode()[0] : _aoi.getDOMNode();
var node = _aoi.getDOMNode() && _aoi.getDOMNode()[0] ? _aoi.getDOMNode()[0] : _aoi.getDOMNode();
var self = this;
if (node)
{