Skip to content

Commit

Permalink
catch MaybeStaticOption value saved as string
Browse files Browse the repository at this point in the history
This was only in a previous version of the part type JSON, but it does
no harm to keep the check in.
  • Loading branch information
christianp committed Apr 17, 2018
1 parent 29256f4 commit 1d173a3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions editor/static/js/custom_part_type/edit.js
Expand Up @@ -285,6 +285,9 @@ $(document).ready(function() {
if(!data) {
return;
}
if(typeof data == 'string') {
data = {static: false, value: data};
}
tryLoad(data,['static'],this);
if(this.static()) {
var value = data.value;
Expand Down

0 comments on commit 1d173a3

Please sign in to comment.