chore: Deprecate collection.url on client

This commit is contained in:
Tom Moor
2024-01-31 20:08:01 -05:00
parent 4800b60825
commit 7417514e7c
11 changed files with 32 additions and 24 deletions

View File

@@ -79,7 +79,7 @@ const DocumentBreadcrumb: React.FC<Props> = ({
type: "route",
title: collection.name,
icon: <CollectionIcon collection={collection} expanded />,
to: collectionPath(collection.url),
to: collectionPath(collection.path),
};
} else if (document.isCollectionDeleted) {
collectionNode = {

View File

@@ -54,7 +54,7 @@ const CollectionLink: React.FC<Props> = ({
await collection.save({
name,
});
history.replace(collection.url, history.location.state);
history.replace(collection.path, history.location.state);
},
[collection, history]
);
@@ -133,7 +133,7 @@ const CollectionLink: React.FC<Props> = ({
<DropToImport collectionId={collection.id}>
<SidebarLink
to={{
pathname: collection.url,
pathname: collection.path,
state: { starred: inStarredSection },
}}
expanded={expanded}