This is a minimum replication of a bug.
A reference field has been added to the Content template at
To trigger the bug.
- Run
npm init - Run
npm dev - Go to http://localhost:3000/admin/index.html#/~/about
- Open the "Content" section
- In the field "Tag1" select "markdown"
- Click "Save"
- Go to "/content/pages/about.mdx" and you will see that "- tag1: content/tags/markdown.mdx" has been added
- Go to http://localhost:3000/admin/index.html#/collections/tag/~
- Delete markdown (content/tags/markdown.mdx)
- Go to "/content/posts/learning-about-markdown.mdx" and you will see that a reference to "content/tags/markdown.mdx" has been removed
- Go to "/content/pages/about.mdx" and you will see that "- tag1: content/tags/markdown.mdx" remains
The reference to "content/tags/markdown.mdx" should also be removed from "/content/pages/about.mdx".
Licensed under the Apache 2.0 license.