Skip to content

Commit

Permalink
safer check for zapped classes when opening element attributes page. F…
Browse files Browse the repository at this point in the history
…ixes #167
  • Loading branch information
raffazizzi committed Jul 9, 2024
1 parent 942c527 commit 339b178
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/containers/EditAttributes.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ const mapStateToProps = (state, ownProps) => {
// but if its module is selected, it may have been zapped. So include it.
// BUT do not restore it if it's been explicitly deleted by the user.
if (state.odd.localsource.json.modules.filter(m => m.ident === localClass.module)[0]
&& state.odd.customization.json.classes._deleted
&& !state.odd.customization.json.classes._deleted.includes(className)) {
return _computeAtts(localClass)
}
Expand Down

0 comments on commit 339b178

Please sign in to comment.