Skip to content

Commit

Permalink
roll back id retrieve method
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaetanbrl committed Nov 27, 2024
1 parent a8d9383 commit b2e8428
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/mv.js
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ var mv = (function () {

saveSourceAttributeFilter: function () {
var values = [];
var layerid = mv.getCurrentLayerId();
var layerid = $(".layers-list-item.active").attr("data-layerid");
var fld = $("#attribute_filter_fields").val();
var operator = $("#attribute_filter_operators").val();
var selected = $("#source_fields_tags").tagsinput("items");
Expand Down Expand Up @@ -2603,7 +2603,7 @@ var mv = (function () {
if (mv.templateGenerator) {
mv.destroyTemplateGenerator();
}
let layerId = mv.getCurrentLayerId();
let layerId = $(".layers-list-item.active").attr("data-layerid");
const data = config.temp.layers[layerId]?.features;
if (!data) {
document.getElementById("templateGeneratorEdit").classList.add("d-none");
Expand Down

0 comments on commit b2e8428

Please sign in to comment.