fix: Command bar should bust cache when docs and collections are renamed
fix: Command bar should get larger on large screens fix: Editable titles in sidebar should enforce max length
This commit is contained in:
@@ -18,7 +18,9 @@ export const openCollection = createAction({
|
||||
const collections = stores.collections.orderedData;
|
||||
|
||||
return collections.map((collection) => ({
|
||||
id: collection.id,
|
||||
// Note: using url which includes the slug rather than id here to bust
|
||||
// cache if the collection is renamed
|
||||
id: collection.url,
|
||||
name: collection.name,
|
||||
icon: <DynamicCollectionIcon collection={collection} />,
|
||||
section: CollectionSection,
|
||||
|
||||
@@ -23,7 +23,9 @@ export const openDocument = createAction({
|
||||
return paths
|
||||
.filter((path) => path.type === "document")
|
||||
.map((path) => ({
|
||||
id: path.id,
|
||||
// Note: using url which includes the slug rather than id here to bust
|
||||
// cache if the document is renamed
|
||||
id: path.url,
|
||||
name: path.title,
|
||||
icon: () =>
|
||||
stores.documents.get(path.id)?.isStarred ? (
|
||||
|
||||
Reference in New Issue
Block a user