Schema problem for The "All" select filter item condition (Blog template)
fredalai opened this issue · comments
Freda Lai commented
Describe the bug
The "All" select filter item condition problem
To Reproduce
Steps to reproduce the behavior:
- Go to 'posts' page
- Add "20190508001" posts, the draft type is yes
- Add "20190508002" posts, the draft type is no
- Selects the filter is "Draft"
- Selects the filter is "All"
- See error (Cannot see all posts in the table list)
Expected behavior
The user can see all posts in the table list
Screenshots
- Show All posts
- Selects the filter is "Draft"
- Selects the filter is "All"
Dependencies (please complete the following information):
- OS: MacOS 10.14.4
- Browser: Chrome 74.0.3729.131
- Node Version: v10.15.3
- Canner Version: 3.2.13
Additional context
It's the schema problem since no keyName called "condition".
<selectFilter
alwaysDisplay
label=""
defaultOptionIndex={0}
options={[
{
text: "All",
condition: {
condition: {}
}
},
{
text: "Published",
condition: {
draft: {
eq: false
}
}
},
{
text: "Draft",
condition: {
draft: {
eq: true
}
}
}
]}
/>