KeystoneJS: Relationships in Admin UI not updating

旧巷老猫 提交于 2019-12-11 03:03:03

问题


I am customizing KeystoneJS and I have run into an issue where it seems the relationship lists in my Admin UI have failed to update.

Specifically, I am looking at the default Post and Post Categories models with a relationship defined on the Post.categories field. If I add a category, it does not show up as an option for when creating or editing a Post.

Could there be some kind of data caching going on? Has anyone seen this issue, I am not seeing any errors and I can confirm the category has been created in MongoDB and the front-end can see and display the category just fine.

Thanks


回答1:


This is a bug in the v0.3 of Keystone. If you go to the following link

https://github.com/keystonejs/keystone/blob/master/docs/guides/v0.3-to-v4.0-Upgrade-Guide.md#user-content-other-gotchas

It tells you that you need to update to v4.0.



来源:https://stackoverflow.com/questions/29613632/keystonejs-relationships-in-admin-ui-not-updating

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!