Fixed Duplicate Branch

This commit is contained in:
Onyx Azryn 2020-10-10 09:35:52 -05:00
parent b499a9573a
commit 34ed9af342

View file

@ -63,8 +63,8 @@ function moved() {
function showNotes(e, i) { function showNotes(e, i) {
if (notesEditor.offsetParent) return; if (notesEditor.offsetParent) return;
let id = e.target.id || e.target.parentNode.id || e.target.parentNode.parentNode.id; let id = e.target.id || e.target.parentNode.id || e.target.parentNode.parentNode.id;
if (e.target.parentNode.parentNode.id === "burgLabels") id = "burg" + e.target.dataset.id; else if (e.target.parentNode.parentNode.id === "burgLabels" || e.target.parentNode.parentNode.id === "burgIcons") id
if (e.target.parentNode.parentNode.id === "burgIcons") id = "burg" + e.target.dataset.id; = "burg" + e.target.dataset.id;
const note = notes.find(note => note.id === id); const note = notes.find(note => note.id === id);
if (note !== undefined && note.legend !== "") { if (note !== undefined && note.legend !== "") {