fix: Nested collections: fix collection URL variable (#665)
This commit is contained in:
parent
12705b5b1d
commit
f97f2e3929
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user