mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-23 07:09:20 +01:00
Fix error TypeError: Cannot read properties of null (reading '0')
This commit is contained in:
parent
017901a317
commit
ae75801033
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user