From 34b5862925deea36b589c672b4a6c72dba06e798 Mon Sep 17 00:00:00 2001 From: Jonas Date: Mon, 26 Jun 2023 09:48:36 +0200 Subject: [PATCH] Wrong parameter (#1791) --- src/controls/draw/drawhandler.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/controls/draw/drawhandler.js b/src/controls/draw/drawhandler.js index 4a1796a98..8b8a8b967 100644 --- a/src/controls/draw/drawhandler.js +++ b/src/controls/draw/drawhandler.js @@ -436,10 +436,10 @@ const DrawHandler = function DrawHandler(options = {}) { }); newLayer.getSource().on('addfeature', (e) => { e.feature.on('change:origostyle', () => { - onUpdate(e, newLayer.get('name')); + onUpdate(e.feature, newLayer.get('name')); }); e.feature.on('change:popuptext', () => { - onUpdate(e, newLayer.get('name')); + onUpdate(e.feature, newLayer.get('name')); }); }); return newLayer;