[FIX] check controller is not null

This commit is contained in:
Saran440
2022-09-23 18:09:54 +07:00
parent 98dbe90445
commit 1d0498f072

View File

@@ -160,7 +160,8 @@ odoo.define("web_drop_target", function (require) {
if (
_.isEmpty(this._get_drop_items(ev)) &&
this._checkDragOver() &&
(controller === undefined || controller.jsID === this.controllerID)
(controller === undefined ||
(controller && controller.jsID === this.controllerID))
) {
const drop_zone_offset = this.$drop_zone.offset();
const overlay_css = {