Skip to content

Commit

Permalink
Disable map-type question if maps are not provided
Browse files Browse the repository at this point in the history
  • Loading branch information
JoonasAapro committed Apr 11, 2024
1 parent c7f744a commit 7f8eed8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ export default function createEditableForm() {
$target.find(".question--collapse").data("toggle", toggleAttr);
}
if ($("[data-decidim-map]").length === 0) {
$target.find("option[value='select_locations']").prop("disabled", true);
$target.find("option[value='select_locations'], option[value='map_locations']").prop("disabled", true);
}
};

Expand Down

0 comments on commit 7f8eed8

Please sign in to comment.