Minor simplification

This commit is contained in:
Jakob Miksch
2022-08-08 15:29:20 +02:00
committed by GitHub
parent 45db7718fc
commit 0cd5ecdfde

View File

@@ -249,7 +249,7 @@ function addInteraction() {
if (value !== 'None') { if (value !== 'None') {
drawInteraction = new Draw({ drawInteraction = new Draw({
source: drawVector.getSource(), source: drawVector.getSource(),
type: typeSelect.value, type: value,
}); });
drawInteraction.on('drawstart', () => { drawInteraction.on('drawstart', () => {
drawing = true; drawing = true;