Skip to content

Commit

Permalink
Merge pull request #5 from derz/master
Browse files Browse the repository at this point in the history
fix: check for undefined and null
  • Loading branch information
onefriendaday authored May 29, 2020
2 parents 65e8afa + cfd7d14 commit f276063
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion storyblok-vue.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

Vue.directive('editable', {
bind: function(el, binding) {
if (typeof binding.value._editable === 'undefined') {
if (typeof binding.value._editable === 'undefined' || binding.value._editable === null) {
return
}

Expand Down

0 comments on commit f276063

Please sign in to comment.