mirror of https://github.com/MISP/MISP
fix: [UI] prevent failing if generic_picker is not in a popover
parent
4859518ce3
commit
e2faa2c53e
|
@ -118,8 +118,10 @@ function syncPopoverArrow($arrow, $wrapper, content) {
|
|||
$wrapper.html(content);
|
||||
$wrapper.show();
|
||||
// redraw popover
|
||||
$arrow.css('top', ar_pos.top + 'px');
|
||||
$arrow.css('left', ar_pos.left + 'px');
|
||||
if (ar_pos !== undefined) {
|
||||
$arrow.css('top', ar_pos.top + 'px');
|
||||
$arrow.css('left', ar_pos.left + 'px');
|
||||
}
|
||||
}
|
||||
|
||||
// can either call a function or fetch requested data
|
||||
|
|
Loading…
Reference in New Issue