Help to debug php error `Undefined index: type`

We found the root cause. It was a missing type declartion: https://github.com/gearsdigital/enhanced-toolbar-link-dialog/issues/15#issuecomment-655984243

But I’m still not sure why this is neccessary. Maybe @distantnative or @texnixe can shed some light about custom models?