fix: Nested collections: fix collection URL variable (#665)

This commit is contained in:
Mark van Seventer 2023-03-26 18:32:34 -04:00 committed by GitHub
parent 12705b5b1d
commit f97f2e3929
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -89,10 +89,7 @@ const CollectionView = ({
let url = 'fields' in collection && collection.create ? getNewEntryUrl(collectionName) : '';
if (url && filterTerm) {
url = getNewEntryUrl(collectionName);
if (filterTerm) {
url = `${newEntryUrl}?path=${filterTerm}`;
}
url = `${url}?path=${filterTerm}`;
}
return url;