next-drupal
next-drupal copied to clipboard
NextEntityTypeConfig is not deleted when its correspond entity type is deleted.
Steps to reproduce
- Create a plain vanilla standard instance of Drupal with the Article content type.
- Install the Next.js module
- Configure Next.js Entity Type for Content: Article (node.article) - /admin/config/services/next/entity-types/add
- Delete the Article content type - /admin/structure/types/manage/article/delete
- View 'Next.js entity types' page - /admin/config/services/next/entity-types
- Confirm that
Warning: Undefined array key "article" in Drupal\next\NextEntityTypeConfigListBuilder->buildRow()is displayed or logged.
Thoughts/Notes
- The Next.js Entity Type config file has no dependencies listed.
- Adding the '{entity_type_id}.{bundle}' as a dependency might fix the issue.
Confirmed this is a bug. Thanks for the suggested fix. Looking into it.
Happy to have you here @jrockowitz :)
I didn't see this when I opened https://github.com/chapter-three/next-drupal/issues/599 but I have a proposed fix in https://github.com/chapter-three/next-drupal/pull/620