From 5542858315f89d73cd13b1292acbbddb7de678cc Mon Sep 17 00:00:00 2001 From: Anton Khorev Date: Wed, 25 Dec 2024 05:04:43 +0300 Subject: [PATCH] Call removeNewNoteMarker() only from page.unload() It was also called from noteCreated() but that triggered page.unload() via OSM.router.route(). --- app/assets/javascripts/index/new_note.js | 1 - 1 file changed, 1 deletion(-) diff --git a/app/assets/javascripts/index/new_note.js b/app/assets/javascripts/index/new_note.js index 4cab9b797..eab4b258a 100644 --- a/app/assets/javascripts/index/new_note.js +++ b/app/assets/javascripts/index/new_note.js @@ -158,7 +158,6 @@ OSM.NewNote = function (map) { createNote(location, text, (feature) => { content.find("textarea").val(""); addCreatedNoteMarker(feature); - removeNewNoteMarker(); addNoteButton.removeClass("active"); OSM.router.route("/note/" + feature.properties.id); }); -- 2.39.5