Skip to content

Commit

Permalink
Update feature toolbar
Browse files Browse the repository at this point in the history
  • Loading branch information
rldhont committed Oct 8, 2024
1 parent 6ff7e04 commit 5f41698
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion assets/src/components/FeatureToolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,8 @@ export default class FeatureToolbar extends HTMLElement {
this._layouts = mainLizmap.config?.layouts;

mainLizmap.config?.printTemplates.map((template, index) => {
if (this._layerId === template?.atlas?.coverageLayer && template?.atlas?.enabled === '1') {
if (this._layerId === template?.atlas?.coverageLayer
&& (template?.atlas?.enabled === '1' || template?.atlas?.enabled === true)) {
// Lizmap >= 3.7
if (mainLizmap.config?.layouts?.list) {
if (mainLizmap.config?.layouts?.list?.[index]?.enabled) {
Expand Down

0 comments on commit 5f41698

Please sign in to comment.