OblikStudio / kirby-git

Kirby plugin for updating content in the panel via Git
MIT License
84 stars 6 forks source link

fix: uses headline from attributes and removes load callback #25

Closed pstaender closed 2 years ago

pstaender commented 2 years ago

Hi @hdodov ,

in Kirby 3.6.1 the error this.load is not a function appears in the panel when using the git field.

I tried (again) with my very limited vue knowledge to solve the problem - I hope I did the right approach. The fix seems to work.

Best regards Philipp

panel error
hdodov commented 2 years ago

This only partly fixes the issue, though. If you specify no headline in your blueprint, the default Git is not applied. Interestingly, the docs about sections still recommend using this.load(), so perhaps it's a bug in Kirby. I've created an issue for it.

pstaender commented 2 years ago

Yes, thanks for figuring that out :) And sry for falsely fixing your plugin…

hdodov commented 2 years ago

It's fine, it's a good workaround. I appreciate your contributions!