Comments (11)
Hey @richardvanbergen — good call. This is on our radar and we will deploy a fix ASAP. Should be within this week.
Thank you as always for reporting these bugs! We're on it!
from payload.
I'm not sure if this is related to this update, but I can at the moment not get relationTo
to work with an array of slugs anymore, it just lists the first slug in the array in the panel.
{
name: 'target',
type: 'relationship',
// hasMany: true,
// required: true,
relationTo: [
'tags',
'posts',
'users',
]
},
Will need to do some research on what's going on, but maybe related.
from payload.
@Ontopic if you scroll down in the input, the next few relations should load. Do they not?
In any case my testing with the above PR this AM definitely works with multiple relations. I thought that was fully functional in the released version now too. Just let me know if scrolling down reveals the additional choices!
from payload.
When I built the latest branch it doesn't work in the demo. After I created something in the all-fields
and localized-posts
collections I do not see both, just the one that is listed first in relationTo
in the postLocalizedMultiple
field in demo/collections/RelationshipA.ts
It only shows localized-posts
when using this
{
name: 'postLocalizedMultiple',
label: 'Localized Post Multiple',
type: 'relationship',
relationTo: ['localized-posts', 'all-fields'],
hasMany: true,
localized: true,
},
It only shows all-fields
when using
...
relationTo: ['all-fields', 'localized-posts'],
...
from payload.
@Ontopic this field looks like it's working perfectly for me. See below video while building from the current master
branch:
Screen.Recording.2021-04-18.at.10.42.25.AM.mov
Are you seeing something different? Note, if you only have one document in each collection, it may be that you need to scroll down in the input to load the second relation. Give that a shot?
from payload.
multi-relationTo.mov
You're right, scrolling on the dropdown does reveal all options, but this does not seem like the best UX - or something I'd like to explain to our editors every time they make a change in their staff 🙃
When the amount of items in a collection is not limited by screen size, it still folds the other collections and there is no indicator that if you scroll down on the dropdown other collections will be made available.
from payload.
@Ontopic totally. We will address this in the PR referenced above. Thanks for pointing it out and for helping me get on the same page!
from payload.
Thanks for - again - a swift reply and action. I'll consider this fixed for now then and hopefully get some PR's in later tonight 🤞
from payload.
All deployed in 0.6.0
!
@richardvanbergen / @Ontopic — if either of you attempt updating, there is one breaking change in this release. May or may not apply to you but best to be safe and double-check.
Check out the migration steps here.
from payload.
Hi @jmikrut , thanks for the fix! I haven't had time to check yet. I'll see if I can give it a go tomorrow sometime and let you know.
from payload.
Working fine on this end 🙃
from payload.
Related Issues (20)
- `generate:types` Fails with Endpoint in Collection Configuration HOT 1
- Text fields that contain international characters are sorted to the end
- When using role based user fields, /create-first-user form always returns "passwords do not match" HOT 2
- TypeError: Cannot assign to read only property 'visibleEntities' of object '#<Object>' HOT 2
- Non-default admin.avatar renders nothing HOT 2
- buildInitialState doesn't handle Array Field Data correctly
- WebP Upload Issue with undefined height HOT 9
- Jsonschema requires uri and filematch despite schema being directly defined
- Locale switch sometimes shows wrong locale HOT 1
- Preview button's fetch call is missing credentials: include
- List view > Filters > "is in" operator > operand value doesn't support multiple selections in Relationship fields
- HMR looping if importing from generated types HOT 1
- Multiple Local API queries in hooks will never resolve (Postgres) HOT 5
- Reset Password link redirects to sign-in page HOT 1
- Toast stuck on submitting when resetting password
- Npm projects receiving `Cannot find module 'drizzle-orm/pg-core'`
- type SelectFieldProps onChange props is typed incorrectly HOT 1
- Resizing silently fails if `sharp` is not defined in config HOT 1
- Doesn't change time from 12-hour format to 24-hour based on locale. HOT 1
- CollapsibleProvider's withinCollapsible is never true. Missing withinCollapsible related CSS classes. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from payload.