Skip to content

Commit

Permalink
Avoid TypeError when remove used style
Browse files Browse the repository at this point in the history
  • Loading branch information
rodfersou committed Sep 18, 2018
1 parent 9ce18fb commit f409bf3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ There's a frood who really knows where his towel is.
1.7b4 (unreleased)
^^^^^^^^^^^^^^^^^^

- Avoid ``TypeError`` when remove used style (refs. `#827 <https://github.com/collective/collective.cover/issues/827>`_).
[rodfersou]

- Fix upgrade step 13 to avoid purging behaviors (fixes `#638 <https://github.com/collective/collective.cover/issues/638>`_).
[hvelarde]

Expand Down
3 changes: 3 additions & 0 deletions src/collective/cover/static/js/layout_edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@
if (key === 'tile-default') {
continue;
}
if (this.options[key] == null) {
continue;
}
this.options[key].selected = true;
}
this.update();
Expand Down

0 comments on commit f409bf3

Please sign in to comment.