Skip to content

Commit

Permalink
Fix error for modules section on site (Kirby 3.6)
Browse files Browse the repository at this point in the history
  • Loading branch information
medienbaecker committed Nov 18, 2021
1 parent 5d5cf83 commit f4ea63c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ panel.plugin('medienbaecker/modules', {
'k-modules-section': {
extends: 'k-pages-section',
created: function () {
if (this.parent == 'site') return;
this.$api.post(this.parent + '/modules')
.then((data) => {
if (data.created) {
Expand Down

0 comments on commit f4ea63c

Please sign in to comment.