Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No collection for path: collectionName #638

Open
VisetDev opened this issue Mar 29, 2024 · 2 comments
Open

No collection for path: collectionName #638

VisetDev opened this issue Mar 29, 2024 · 2 comments

Comments

@VisetDev
Copy link

When trying to list a "type:reference" property under a subcollection, ErrorView arise:

image

Entities under subcollections stores references to documents under '/home/collections/visets' thus view configuration is as follow:

const reference = buildProperty({
		dataType: 'reference',
		path: "home/collections/visets",
		readOnly: true,
		name: 'In Collection',
		previewProperties: ["title"],
        columnWidth: 400,
	
});

onFetch(entity) log:

values: 
reference:  On2 
             id: "75b2b694dd42b88a8fc3"
             path: "home/collections/visets"

the same structure works fine if referenced collection is under root: '/visets' (for instance)

Collection '/home/collections/visets' is already created in firecms and works just fine.

My asumptions is somehow firecms reference path is not parsing paths in the form : "/collection/document/collection/" (deep further root)

@fgatti675
Copy link
Member

Hi @VisetDev, if you declared a subcollection with path visets under the home collection, then it's a bug on FireCMS. We will look into it and let you know

@VisetDev
Copy link
Author

VisetDev commented Apr 5, 2024

It's actually path: "home/collections/visets" where the reference points to (collection/document/collection) ... but you got the point. thx.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants